BG migration to fix incorrect job artifacts expire_at on self-managed
Files
2@alberts-gitlab @ahegyi When we use
apply_additional_filters
, the same filters should be applied here asbatching_scope
, otherwise the batch generated by the job class will be different (may include more rows) from the batch generated by the batching strategy.Yes, it's confusing and error-prone, this is one of the reasons for switching to
scope_to
- the filters defined this way will be used by both the batching strategy and the job class, and we do not have to define custom batching strategy class.We're still fine here, as we apply the filters on the yielded relation (
sub_batch
). I'll update this as part of !96478 (merged) anyway,Updated with !96478 (2097adef), can you please have a look and confirm all is good?
Thanks, @krasio! I'll take a look.