summaryrefslogtreecommitdiff
path: root/lib/bulk_imports/pipeline/runner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bulk_imports/pipeline/runner.rb')
-rw-r--r--lib/bulk_imports/pipeline/runner.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/bulk_imports/pipeline/runner.rb b/lib/bulk_imports/pipeline/runner.rb
index c03da7d8d01..ef9575d1e96 100644
--- a/lib/bulk_imports/pipeline/runner.rb
+++ b/lib/bulk_imports/pipeline/runner.rb
@@ -54,7 +54,8 @@ module BulkImports
skip!(
'Skipping pipeline due to failed entity',
pipeline_step: step,
- step_class: class_name
+ step_class: class_name,
+ importer: 'gitlab_migration'
)
rescue BulkImports::NetworkError => e
if e.retriable?(context.tracker)
@@ -108,9 +109,12 @@ module BulkImports
}
error(
+ bulk_import_id: context.bulk_import_id,
pipeline_step: step,
exception_class: exception.class.to_s,
- exception_message: exception.message
+ exception_message: exception.message,
+ message: "Pipeline failed",
+ importer: 'gitlab_migration'
)
BulkImports::Failure.create(attributes)
@@ -130,11 +134,12 @@ module BulkImports
def log_params(extra)
defaults = {
- bulk_import_id: context.bulk_import.id,
+ bulk_import_id: context.bulk_import_id,
bulk_import_entity_id: context.entity.id,
bulk_import_entity_type: context.entity.source_type,
pipeline_class: pipeline,
- context_extra: context.extra
+ context_extra: context.extra,
+ importer: 'gitlab_migration'
}
defaults