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:
authorShinya Maeda <shinya@gitlab.com>2018-07-06 09:19:01 +0300
committerShinya Maeda <shinya@gitlab.com>2018-07-06 09:19:01 +0300
commit1667b65c1ea43882da1611c4454618d8a1eca8cc (patch)
tree733f11290fdb8c13e85b642a438f40b4fae1e045 /app/workers/ci
parent9c9bb49b0fd3dfa4d25f2958185809f8bfae6f3d (diff)
Use AlreadyArchivedError if it's the case
Diffstat (limited to 'app/workers/ci')
-rw-r--r--app/workers/ci/archive_traces_cron_worker.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/workers/ci/archive_traces_cron_worker.rb b/app/workers/ci/archive_traces_cron_worker.rb
index eca1c681b23..7d4e9660a4e 100644
--- a/app/workers/ci/archive_traces_cron_worker.rb
+++ b/app/workers/ci/archive_traces_cron_worker.rb
@@ -12,9 +12,8 @@ module Ci
Ci::Build.finished.with_live_trace.find_each(batch_size: 100) do |build|
begin
build.trace.archive!
+ rescue ::Gitlab::Ci::Trace::AlreadyArchivedError
rescue => e
- next if e.message.include?('Already archived')
-
failed_archive_counter.increment
Rails.logger.error "Failed to archive stale live trace. id: #{build.id} message: #{e.message}"
end