enable bull automation queue to use full redis URLs
This commit is contained in:
parent
df5c156b6e
commit
57fcf40de9
|
@ -14,8 +14,10 @@ const {
|
||||||
} = require("../integrations/utils")
|
} = require("../integrations/utils")
|
||||||
const { getExternalTable } = require("../api/controllers/table/utils")
|
const { getExternalTable } = require("../api/controllers/table/utils")
|
||||||
|
|
||||||
const { opts } = utils.getRedisOptions()
|
const { opts, redisProtocolUrl } = utils.getRedisOptions()
|
||||||
let automationQueue = new Queue(JobQueues.AUTOMATIONS, { redis: opts })
|
|
||||||
|
const redisConfig = redisProtocolUrl || { redis: opts }
|
||||||
|
let automationQueue = new Queue(JobQueues.AUTOMATIONS, redisConfig)
|
||||||
|
|
||||||
const FAKE_STRING = "TEST"
|
const FAKE_STRING = "TEST"
|
||||||
const FAKE_BOOL = false
|
const FAKE_BOOL = false
|
||||||
|
|
Loading…
Reference in New Issue