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
How to clean out these Busy jobs. #5237
Comments
Restarting Sidekiq will typically clear them out. |
I ran a heroku ps:restart to document what happens. What happens is this... workers boot... then I see: Starting a Sales job for aldkjfslkdjfksldjfskjdf WARN: Terminating 3 busy worker threads INFO: Pushed 3 jobs back to Redis So basically, these things just keep on coming back to life.. I cannot kill them!! Maybe I am missing the basics. How to restart Sidekiq? |
That's right. Sidekiq does its best to not lose jobs. Your jobs aren't finishing so you'll need to debug and figure out why. I'm not sure the best way to debug in production on Heroku. |
So the only recourse, is to let these 3 jobs sit there forever? Wow. I guess I can always just delete Redis. That should do the trick. |
Simply by fixing the job, they all finished. All clean now. Thanks! |
Or deploy a fix. Or deploy a change that adds “return” to the top of the
perform method. Or use the Queue API to clear all the jobs in that queue
after shutting down Sidekiq.
…On Wed, Mar 9, 2022 at 16:58 David Lazar ***@***.***> wrote:
So the only recourse, is to let these 3 jobs sit there forever? Wow. I
guess I can always just delete Redis. That should do the trick.
—
Reply to this email directly, view it on GitHub
<#5237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAWX6YTAJ2XALDEMCXNBDU7FCLVANCNFSM5QLB3YWA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Ruby version: 3.1.1
Rails version: 7.0
Sidekiq / Pro / Enterprise version(s): 6.4.1
My initializer for Sidekiq is:
This is running on 2 Dynos at Heroku with the procfile: worker: bundle exec sidekiq -c 3
I have no idea what I have done, but I did it. I have 3 jobs in busy status. I cannot kill them. I cannot seemingly do anything. I am stuck. My dashboard shows this:
No matter what I try, these things persist. What the heck do I do to kill these things? I started them just at my heroku command line using
Thinking I could just monitor what happened.. instead these jobs are like zombies!!
The text was updated successfully, but these errors were encountered: