Skip to content

Ensure after_run ops execute once only

Carla Drago requested to merge 429856-on-finish into master

What does this MR do and why?

This change ensures any operations designed to execute after a bulk_import pipeline has run will only be executed once, whether the pipeline is batched or not batched. It corrects the error where after_run operations were run after each batch completion, rather than after all batches were completed. The method/pipeline step has been named 'on_finish' for clarity.

Changelog: fixed

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  1. Enable the :bulk_imports_batched_import_export feature flag.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/429856

Edited by Luke Duncalfe

Merge request reports