Commit 4302ac2d authored by lauraMon's avatar lauraMon Committed by Matthias Käppler

Add data consistency for PipelineNotificationWorker

parent 208e818a
......@@ -3,13 +3,12 @@
class PipelineNotificationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3
include PipelineQueue
urgency :high
worker_resource_boundary :cpu
data_consistency :delayed, feature_flag: :load_balancing_for_pipeline_notification_worker
def perform(pipeline_id, args = {})
case args
......
---
name: load_balancing_for_pipeline_notification_worker
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66459
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/336517
milestone: '14.2'
type: development
group: group::pipeline authoring
default_enabled: false
......@@ -20,5 +20,10 @@ RSpec.describe PipelineNotificationWorker, :mailer do
subject.perform(non_existing_record_id)
end
it_behaves_like 'worker with data consistency',
described_class,
feature_flag: :load_balancing_for_pipeline_notification_worker,
data_consistency: :delayed
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