-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Not processing unfinished jobs across server restarts using async_server mode on Iodine server #244
Comments
Further investigation into the issue using
shows the unfinished jobs are re-processed and ultimately finished. So this means |
@daya thanks for opening this issue and documenting your configuration. This is strange and unexpected; unfinished jobs should be executed continuously until they are finished or errored. Let me try to reproduce the problem with the configuration that you shared. I haven't used Iodine before. This is the code that good_job/lib/good_job/adapter.rb Lines 148 to 154 in b436e4d
|
|
You can execute jobs with |
@daya I released GoodJob Also, I'm curious about the benefits your seeing from Iodine. I'd never heard of that server before. Thanks! |
@bensheldon thanks for such a quick turnaround. The performance is better than puma. And apparently there is a better native support for websockets, better than ActionCable plus Redis free pubsub. I haven't yet used those features but they were tempting to select Iodine as I know I will need them later. |
First of all a bunch of thanks for doing such a good job 😍
FYI, I am using Iodine server instead of Puma and using
async_server
mode, to test if unfinished jobs will be retried across server restarts I did the followingin
application.rb
I havein
application_job.rb
then submitted the job
The job was tried 3 times in after 15-20 seconds and showed up as unfinished on the dashboard
I stopped and restarted the server this time with
Not sure what I am missing but the job is never retried.
So I am worried that if I try this approach in production then I am going to have a bunch of unfinished jobs that would never be retried 😒 . Could you enlighten me please?
Also is there a way to manually retry unfinished jobs in case I need to do it sometimes?
The text was updated successfully, but these errors were encountered: