You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That being said, I have been bitten a few times by accidentally calling batch.jobs more than once. I'm wondering if it's possible to raise an error when a user does this so the mistake can be caught and fixed sooner? When I accidentally do this, I end up with a batch that never finishes because there are non-existent pending jobs.
Not sure if this makes sense or not, but would like to hear your thoughts.
Thanks!
The text was updated successfully, but these errors were encountered:
I've tried to do this before, it was tricky to determine whether it is safe or not. Additionally I realized it could be better to retain backwards compatibility with racy code rather than breaking people's apps and forcing them to rework their batch code.
As clearly stated in the documentation,
https://github.com/sidekiq/sidekiq/wiki/Batches
That being said, I have been bitten a few times by accidentally calling
batch.jobs
more than once. I'm wondering if it's possible to raise an error when a user does this so the mistake can be caught and fixed sooner? When I accidentally do this, I end up with a batch that never finishes because there are non-existent pending jobs.Not sure if this makes sense or not, but would like to hear your thoughts.
Thanks!
The text was updated successfully, but these errors were encountered: