fix(core): Ensure graceful shutdown for workers (#9547)

This commit is contained in:
Iván Ovejero
2024-05-31 15:41:00 +02:00
committed by GitHub
parent c5e0cf0137
commit 7fc00d8d10
2 changed files with 20 additions and 7 deletions

View File

@@ -109,8 +109,11 @@ export class Queue {
return await this.jobQueue.client.ping();
}
async pause(isLocal?: boolean): Promise<void> {
return await this.jobQueue.pause(isLocal);
async pause({
isLocal,
doNotWaitActive,
}: { isLocal?: boolean; doNotWaitActive?: boolean } = {}): Promise<void> {
return await this.jobQueue.pause(isLocal, doNotWaitActive);
}
getBullObjectInstance(): JobQueue {