fix(worker): close promotion scanner queue on SIGTERM
This commit is contained in:
parent
d3e520e3b1
commit
e45de85512
1 changed files with 1 additions and 0 deletions
|
|
@ -141,6 +141,7 @@ process.on('SIGTERM', async () => {
|
||||||
proxyThumbnailQueue.close().catch(() => {}),
|
proxyThumbnailQueue.close().catch(() => {}),
|
||||||
youtubeProxyQueue.close().catch(() => {}),
|
youtubeProxyQueue.close().catch(() => {}),
|
||||||
filmstripQueue.close().catch(() => {}),
|
filmstripQueue.close().catch(() => {}),
|
||||||
|
_promotionScanner ? _promotionScanner.promotionQueue.close().catch(() => {}) : Promise.resolve(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
console.log('All workers and queues closed');
|
console.log('All workers and queues closed');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue