We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When after a few minutes of starting the process, I have some error.
Error 1.
BRPOPLPUSH Error: Too many Cluster redirections. Last error: Error: Connection is closed.
Error2.
BRPOPLPUSH Error: Too many Cluster redirections. Last error: ReplyError: MOVED 3768
import Queue from 'bull'; import Redis from 'ioredis'; const client: Redis.Cluster = new Redis.Cluster([...environments.REDIS_HOST], { scaleReads: 'slave', }); const subscriber: Redis.Cluster = new Redis.Cluster([...environments.REDIS_HOST], { scaleReads: 'slave', }); let queueOptions: Queue.QueueOptions = _.extend({}, defaultOptions, options); queueOptions.createClient = (type: string): Redis.Cluster => { switch (type) { case 'client': return client; case 'subscriber': return subscriber; default: const defaultClient: Redis.Cluster = new Redis.Cluster([...environments.REDIS_HOST], { scaleReads: 'slave', }); return defaultClient; } }; const messageQueuesprocess = new Queue('testQueue', queueOptions); public async process(options: WorkerOptions, worker: Queue.ProcessPromiseFunction<Function>): Promise<void> { try { await messageQueuesprocess(options.concurrency, worker); } catch (e) { throw new Error(e); } } process()
v3.10.0
Redis info
The text was updated successfully, but these errors were encountered:
Looks like we need to upgrade ioredis redis/ioredis#850.
Sorry, something went wrong.
@stansv Thanks for your help.
No branches or pull requests
Description
When after a few minutes of starting the process, I have some error.
Error 1.
Error2.
Minimal, Working Test code to reproduce the issue.
Bull version
v3.10.0
Additional information
Redis info
The text was updated successfully, but these errors were encountered: