fix: redis_options for job scheduler (#5894)

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
This commit is contained in:
Katarzyna StokłosaandRiqwan Thamir authored and GitHub committed 2023-12-18 16:40:10 +01:00
1 parent 8cb53da34e
commit 05520391d1
1 file changed
+1
@@ -41,6 +41,7 @@ export default class JobSchedulerService {
const connection = new Redis(config.projectConfig.redis_url, { const connection = new Redis(config.projectConfig.redis_url, {
maxRetriesPerRequest: null, maxRetriesPerRequest: null,
enableReadyCheck: false, enableReadyCheck: false,
...(config.projectConfig.redis_options ?? {}),
}) })
this.queue_ = new Queue(`scheduled-jobs:queue`, { this.queue_ = new Queue(`scheduled-jobs:queue`, {