Improve batch migration logs - Direct Transfer
The workers introduced by batched migrations don't produce logs, which makes debugging difficult.
Below is a list of logs we could add to help debugging:
BulkImports::PipelineBatchWorker
- Log when batch fails
- Log when batch start and finish
In the log, include the relevant attributes:
- importer: 'gitlab_migration'
- bulk_import_id
- bulk_import_entity_id
- message
BulkImports::FinishBatchedPipelineWorker
- Log when the tracker is considered stale, and migration is marked as failed
- Log when the tracker is marked as finished
In the log, include the relevant attributes:
- bulk_import_entity_id
- pipeline_class
- tracker_id
- message
Edited by Rodrigo Tomonari