Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-12-12 16:31:53 +0300
committerNick Thomas <nick@gitlab.com>2018-12-12 16:31:53 +0300
commitb9ccf013bab3f7ec25b70d83f37b1b0923302379 (patch)
tree90674592fccdb3c2b8bec338f97583cfd17854f7 /app/workers/repository_update_remote_mirror_worker.rb
parent5ee900ee9d2288cbf57007d905acd2a6e9239ff4 (diff)
parentb65cb237cee0b1a8dfdc21a09f2b181d0edf5bde (diff)
Merge branch '54650-send-an-email-to-project-owners-when-a-mirror-update-fails' into 'master'
Send a notification email on mirror update errors Closes #54650 See merge request gitlab-org/gitlab-ce!23595
Diffstat (limited to 'app/workers/repository_update_remote_mirror_worker.rb')
-rw-r--r--app/workers/repository_update_remote_mirror_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/repository_update_remote_mirror_worker.rb b/app/workers/repository_update_remote_mirror_worker.rb
index bd429d526bf..c0bae08ba85 100644
--- a/app/workers/repository_update_remote_mirror_worker.rb
+++ b/app/workers/repository_update_remote_mirror_worker.rb
@@ -15,7 +15,7 @@ class RepositoryUpdateRemoteMirrorWorker
end
def perform(remote_mirror_id, scheduled_time)
- remote_mirror = RemoteMirror.find(remote_mirror_id)
+ remote_mirror = RemoteMirrorFinder.new(id: remote_mirror_id).execute
return if remote_mirror.updated_since?(scheduled_time)
raise UpdateAlreadyInProgressError if remote_mirror.update_in_progress?