TypeError: scripts.updateDelaySet(...).then(...).catch(...).
Created by: pigaov10
Description
I am trying re-use Redis session following PATTERNS.md. All is working until the "New Queue" code, but when I try call ".process" queue method i exception appears
TypeError: scripts.updateDelaySet(...).then(...).catch(...).return is not a function services_monitor.1.wfdxm3rsmh11@l01752papp0 | at delayUpdate (/var/www/html/node/node_modules/bull/lib/queue.js:867:16)
Minimal, Working Test code to reproduce the issue.
The code: `var Queue = require('bull');
var Redis = require('ioredis') var client = new Redis(6379, 'redis'); var subscriber = new Redis(6379, 'redis');
var opts = { createClient: function (type) { switch (type) { case 'client': return client; case 'subscriber': return subscriber; default: return new Redis(); } } }`
var queueMonitor = new Queue('monitor', opts); //-> returns the Queue object
queueMonitor.process(function(job, done){ // the error appears here
console.log("Received message", job.data.msg);
done();
});
Bull version
bull 3.4.7 ioredis 4.0.0