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
It looks like it should "just work" by adding the BatchEnumerator to the allowed list of classes, but I might be missing something, let me know if you have any questions and if needed I'd be happy to work on it with you.
Thanks a lot for the library, it works great other than this small issue.
The text was updated successfully, but these errors were encountered:
👋 Hi folks! Unfortunately we can't directly use ActiveRecord::Batches::BatchEnumerator because it's not compatible with the way Job Iteration builds Active Record enumerators. That being said, I'm proposing an alternative API that still provides support for batch collections in Tasks, leveraging the mechanism Job Iteration offers (#build_active_record_enumerator_on_batches)
I've opened a more generic batch support issue here: #401. I'm going to close this issue.
Reopening, we've discussed the pros of leveraging BatchEnumerator for this feature, and it makes the most sense. We'll look into modifying Job Iteration's API so that we can use in_batches.
Hi, while implementing this job for recent task, I ran into the requirement here that I return a known collection type.
As you can see, to make my job work I had to provide an array with at least one value, it would be nice if I could have done:
It looks like it should "just work" by adding the
BatchEnumerator
to the allowed list of classes, but I might be missing something, let me know if you have any questions and if needed I'd be happy to work on it with you.Thanks a lot for the library, it works great other than this small issue.
The text was updated successfully, but these errors were encountered: