Limit frequency of entity relation export requests

This is a follow-up to !220054 (merged), which addressed excessive RecordNotFound errors when users rapidly create direct transfer migrations using the same source entity. While that MR silenced the noisy errors, it doesn't prevent the underlying issue from occurring.

To prevent subsequent migrations from deleting in-progress relation export batches, we should implement some kind pf rate limiting on the destination instance to prevent users from initiating new migrations of the same source entity within a certain time window.

Related to

  • https://gitlab.com/gitlab-org/gitlab/-/work_items/583390+
  • Don't retry RelationBatchExportWorker when batc... (!220054 - merged)
Assignee Loading
Time tracking Loading