fix(core): Disconnect Redis after pausing queue during worker shutdown (#9928)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -64,9 +64,6 @@ export class Worker extends BaseCommand {
|
||||
async stopProcess() {
|
||||
this.logger.info('Stopping n8n...');
|
||||
|
||||
// Stop accepting new jobs, `doNotWaitActive` allows reporting progress
|
||||
await Worker.jobQueue.pause({ isLocal: true, doNotWaitActive: true });
|
||||
|
||||
try {
|
||||
await this.externalHooks?.run('n8n.stop', []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user