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

change the score of a retry job #170

Open
gzhhong opened this issue Oct 21, 2020 · 0 comments
Open

change the score of a retry job #170

gzhhong opened this issue Oct 21, 2020 · 0 comments

Comments

@gzhhong
Copy link

gzhhong commented Oct 21, 2020

Hello, Thanks for the great library and it help me a lot in my project. I have a special request not sure how to do, wish you can give help. I create a job to be executed in 30 seconds, I use enqueuer.EnqueueIn (jobName, 30, work.Q{param...})to add it to zset of redis. If the job is executed in 30 seconds but failed, I want it can be rescheduled to be executed for another time but should be executed right after it is failed (or just wait x seconds, here x < 30) . That means when it is added to retry queue, its score should be changed, so it will not wait another 30seconds. Is it possbile?

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

1 participant