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
They are different options. batch_flush_size determines the size of the queue at which point grouping will occur. batch_size determines the size of each group.
In your example, grouping will occur when there a 5 or more jobs in the queue but because the batch_size is set to 2, the number of jobs in each group will be 2. Hope this answers your question.
Sorry for asking this question, but it was not clear for me while reading the documentation. In the README says that:
But them there is this exemple that uses both:
And them looking in the code I can see that
pluck_size
andchunk_size
are used in different places here https://github.com/gzigzigzeo/sidekiq-grouping/blob/master/lib/sidekiq/grouping/batch.rb#L27-L35Could someone please clarify if they are different options of are the same?
Thanks!
The text was updated successfully, but these errors were encountered: