Import notes, diff notes and events in separate workers - Bitbucket and Bitbucket Server
Ideally, importers shouldn't import multiple resources into a single worker; instead, each resource should be imported into a separate worker to increase parallelism and avoid workers getting interrupted due to long execution times.
Also, importer workers shouldn't make HTTP calls since multiple import workers are executed in parallel, causing the source instance to return too many connection errors or fail to handle all requests. The correct approach is to make HTTP calls in the stage workers.
Proposed solution
- Update Bitbucket and Bitbucket Server to import notes, diff notes, and events in separate workers.
Edited by Rodrigo Tomonari