Commit 0c05d8b8 authored by Nick Thomas's avatar Nick Thomas

Make RepositoryUpdateMirrorWorker idempotent

In the event that multiple instances of these jobs are scheduled, it is
safe to batch them up into a single mirror update, which is by nature
idempotent.

Changelog: fixed
parent 764ef548
......@@ -1127,7 +1127,7 @@
:urgency: :low
:resource_boundary: :unknown
:weight: 1
:idempotent:
:idempotent: true
:tags: []
- :name: requirements_management_import_requirements_csv
:worker_name: RequirementsManagement::ImportRequirementsCsvWorker
......
# frozen_string_literal: true
class RepositoryUpdateMirrorWorker # rubocop:disable Scalability/IdempotentWorker
class RepositoryUpdateMirrorWorker
UpdateError = Class.new(StandardError)
include ApplicationWorker
idempotent!
data_consistency :always
include Gitlab::ShellAdapter
include ProjectStartImport
......
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