Missing Sidekiq::Batch::Status#success?
method
#5278
rafaelmillan
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Once a batch is successful, it is deleted from Redis so it’s pretty hard to safely provide that method. You should determine success based on side effects, ie something in your app database, set your own marker in Redis, etc. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found myself trying to figure out if a batch and its children batches were successful, and I realized that there is no
Sidekiq::Batch::Status#success?
method (despite there being aSidekiq::Batch::Status#complete?
method).I imagine something like this would work:
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions