Skip to content

Commit

Permalink
Start queue on license invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Nov 17, 2023
1 parent 0855257 commit f2be62b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/meteor/server/services/omnichannel/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ export class OmnichannelService extends ServiceClassInternal implements IOmnicha
License.onValidateLicense(async (): Promise<void> => {
RoutingManager.isMethodSet() && (await this.queueWorker.shouldStart());
});

// NOTE: When there's no license or license is invalid, we fallback to CE behavior
// CE behavior means there's no MAC limit, so we start the queue
License.onInvalidateLicense(async (): Promise<void> => {
this.queueWorker.isRunning() && (await this.queueWorker.shouldStart());
});
}

getQueueWorker(): IOmnichannelQueue {
Expand Down

0 comments on commit f2be62b

Please sign in to comment.