diff options
Diffstat (limited to 'app/workers/repository_update_remote_mirror_worker.rb')
-rw-r--r-- | app/workers/repository_update_remote_mirror_worker.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/workers/repository_update_remote_mirror_worker.rb b/app/workers/repository_update_remote_mirror_worker.rb index 21b5916f459..483aae84a3b 100644 --- a/app/workers/repository_update_remote_mirror_worker.rb +++ b/app/workers/repository_update_remote_mirror_worker.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class RepositoryUpdateRemoteMirrorWorker # rubocop:disable Scalability/IdempotentWorker +class RepositoryUpdateRemoteMirrorWorker UpdateError = Class.new(StandardError) include ApplicationWorker @@ -11,6 +11,7 @@ class RepositoryUpdateRemoteMirrorWorker # rubocop:disable Scalability/Idempoten sidekiq_options retry: 3, dead: false feature_category :source_code_management loggable_arguments 1 + idempotent! LOCK_WAIT_TIME = 30.seconds MAX_TRIES = 3 |