Fix issue with queue mode

This commit is contained in:
Jan Oberhauser
2021-10-21 18:25:31 -05:00
parent a0b89ee5a4
commit 6fa8dd701e
4 changed files with 11 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ import {
Db,
ExternalHooks,
GenericHelpers,
InternalHooksManager,
LoadNodesAndCredentials,
NodeTypes,
WebhookServer,
@@ -147,6 +148,9 @@ export class Webhook extends Command {
// Wait till the database is ready
await startDbInitPromise;
const instanceId = await UserSettings.getInstanceId();
InternalHooksManager.init(instanceId);
if (config.get('executions.mode') === 'queue') {
const redisHost = config.get('queue.bull.redis.host');
const redisPassword = config.get('queue.bull.redis.password');