Skip to content
New issue

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

Jobs get stuck after Redis reconnect #2417

Closed
Yuliang-Lee opened this issue Aug 23, 2022 · 2 comments
Closed

Jobs get stuck after Redis reconnect #2417

Yuliang-Lee opened this issue Aug 23, 2022 · 2 comments

Comments

@Yuliang-Lee
Copy link

Description

The problem similar to #1873

Steps to reproduce.

  • Run the above script
  • Bull JS start accepting and processing Jobs
  • Stop Redis
  • Bull JS will keep retrying
  • Start Redis
  • Bull JS will connect in a few milliseconds
  • At this stage, the queue can push the jobs and but it won't process any jobs. :-(

Bull version

Bull 4.8.5
Node 16
Redis 7
ioredis 4.x / 5.x

Additional information

When initial Queue I tried redis-option or createRedis-option but neither works.

blow are my console log.

queue options

{
        port: 6379, // Redis port
        host: 'ip', // Redis host
        password: 'password',
        db: 0,
        enableReadyCheck: false,
        maxRetriesPerRequest: null,
        reconnectOnError() {
          return true
        }
      }

ioredis.log

ioredis-createClient.log

@manast
Copy link
Member

manast commented Aug 23, 2022

I am going to close this since no new information is provided. From my end I cannot reproduce any issue of stuck jobs when reconnecting, so please if you want me to spend time investigating this, provide a full complete and easy to reproduce code snippet and instructions.

@manast manast closed this as completed Aug 23, 2022
@Yuliang-Lee
Copy link
Author

memo: #1873 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants