Commit 172af7fa authored by Alex Kalderimis's avatar Alex Kalderimis

Merge branch 'georgekoltsov/update-bulk-import-entity-worker-deduplicate-strategy' into 'master'

Update BulkImports::EntityWorker deduplication strategy

See merge request gitlab-org/gitlab!84204
parents 5e198153 f75d5789
......@@ -4,17 +4,13 @@ module BulkImports
class EntityWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
idempotent!
deduplicate :until_executing
data_consistency :always
feature_category :importers
sidekiq_options retry: false, dead: false
worker_has_external_dependencies!
idempotent!
deduplicate :until_executed, including_scheduled: true
def perform(entity_id, current_stage = nil)
return if stage_running?(entity_id, current_stage)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment