Commit 2499808c authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'adjust_issue_placement_worker_deduplicate_strategy' into 'master'

Set deduplicate strategy to until_executed

See merge request gitlab-org/gitlab!60116
parents 08ceb01b 656b4bbd
......@@ -4,6 +4,7 @@ class IssuePlacementWorker
include ApplicationWorker
idempotent!
deduplicate :until_executed, including_scheduled: true
feature_category :issue_tracking
urgency :high
worker_resource_boundary :cpu
......
......@@ -129,4 +129,9 @@ RSpec.describe IssuePlacementWorker do
it_behaves_like 'running the issue placement worker'
end
end
it 'has the `until_executed` deduplicate strategy' do
expect(described_class.get_deduplicate_strategy).to eq(:until_executed)
expect(described_class.get_deduplication_options).to include({ including_scheduled: true })
end
end
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