Shopify / job-iteration

Makes your background jobs interruptible and resumable by design.
https://www.rubydoc.info/gems/job-iteration
MIT License
1.15k stars 45 forks source link

Usage of @needs_reenqueue? #475

Open brianaj opened 7 months ago

brianaj commented 7 months ago

Is there an alternative to using the private @needs_reenqueue? accessor that provides similar functionality? We're dealing with a specific scenario and are unsure if this is equivalent to checking if cursor_position is nil. Given our mix of built-in and custom enumerators, we want to make sure we can consistently apply this logic when a job-iteration job has nothing left to enumerate or nothing to enumerate at all.