-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
while_executing jobs being dropped #749
Comments
That is how it is expected to work. You'd have to use a conflict strategy if you want to handle it. There is no preventing both jobs from starting at the same time, only that they don't execute simultaneously. |
Thanks for the quick reply, I will investigate more after the holidays. So if I want to move jobs to the schedule queue (or just allow them to execute after one has finished), rather than skipping then I should try a custom on_conflict strategy? |
Is that really true? Note that @RobsonKing is using the "reschedule" strategy in the example. Shouldn't that cause both jobs to be executed? |
I figured out my problem. I was changing my on_conflict strategy but not reloading my rails console. As a result things behaved like :log when I thought it was set to :reschedule. 🤕 |
Describe the bug
I am trying to use while_executing like the example in the myapp
I queue multiple of these jobs from the console
I expect the second job to run after the first job has finished.
Am I reading the documentation wrong? Is this not how it is supposed to work?
Expected behavior
I expect them to run one at a time.
Current behavior
jobs are skipped with
Worker class
The text was updated successfully, but these errors were encountered: