Draft: Refactor worker to query projects with stuck MRs
requested to merge unstick-mrs-distinct-each-batch into kerrizor/unstick-mrs-with-nonnull-merge_jids
What does this MR do and why?
Utilizes distinct_each_batch
to query target_project_id
of MRs that are in locked
state.
Behind a feature flag called unstick_mrs_distinct_each_batch
so we can turn it off if it shows any unforeseen issue on production.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.