1
0
Fork 0
mirror of synced 2024-10-01 17:47:46 +13:00

enable bull automation queue to use full redis URLs

This commit is contained in:
Martin McKeaveney 2021-09-17 18:46:27 +01:00
parent b27e161829
commit ed8a23a05d

View file

@ -14,8 +14,10 @@ const {
} = require("../integrations/utils")
const { getExternalTable } = require("../api/controllers/table/utils")
const { opts } = utils.getRedisOptions()
let automationQueue = new Queue(JobQueues.AUTOMATIONS, { redis: opts })
const { opts, redisProtocolUrl } = utils.getRedisOptions()
const redisConfig = redisProtocolUrl || { redis: opts }
let automationQueue = new Queue(JobQueues.AUTOMATIONS, redisConfig)
const FAKE_STRING = "TEST"
const FAKE_BOOL = false