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:
authorKamil TrzciƄski <ayufan@ayufan.eu>2018-02-23 15:08:38 +0300
committerShinya Maeda <shinya@gitlab.com>2018-03-06 15:43:19 +0300
commitf0d7a2ffc419e5e4893f9161c008d4ead5d3a660 (patch)
treeb249173d7f2a508b61848993dc65068e7c399232 /app/workers
parentfa31559a37bfe394dedf4078789f1540e01fc5c7 (diff)
Proper fix for artifacts trace migration which is fully safe
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/create_trace_artifact_worker.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/create_trace_artifact_worker.rb b/app/workers/create_trace_artifact_worker.rb
index 11cda58021e..3283e8d79f0 100644
--- a/app/workers/create_trace_artifact_worker.rb
+++ b/app/workers/create_trace_artifact_worker.rb
@@ -2,9 +2,11 @@ class CreateTraceArtifactWorker
include ApplicationWorker
include PipelineQueue
+ # TODO: this worker should use BackgroundMigration or ObjectStorage queue
+
def perform(job_id)
Ci::Build.preload(:project, :user).find_by(id: job_id).try do |job|
- Ci::CreateTraceArtifactService.new(job.project, job.user).execute(job)
+ job.trace.archive!
end
end
end