Draft: Add a feature flag that increases the number of concurrent jobs in BBS
What does this MR do and why?
Add bitbucket_server_increased_import_note_jobs_limit feature flag that raises the limit of concurrent Gitlab::BitbucketServerImport::ImportPullRequestNoteWorker jobs executed per migration.
The default is 100; with the feature flag enabled, the limit is increased to 1000.
Additionally, it fixes the job waiter logic, which could cause migrations get stuck when the stage job is interrupted, as
jobs_remaining would be incremented more times than the number of enqueued jobs.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.