diff options
author | Nick Thomas <nick@gitlab.com> | 2018-12-12 16:31:53 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-12-12 16:31:53 +0300 |
commit | b9ccf013bab3f7ec25b70d83f37b1b0923302379 (patch) | |
tree | 90674592fccdb3c2b8bec338f97583cfd17854f7 /app/workers/repository_update_remote_mirror_worker.rb | |
parent | 5ee900ee9d2288cbf57007d905acd2a6e9239ff4 (diff) | |
parent | b65cb237cee0b1a8dfdc21a09f2b181d0edf5bde (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.rb | 2 |
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? |