diff options
author | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-02-23 15:08:38 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-03-06 15:43:19 +0300 |
commit | f0d7a2ffc419e5e4893f9161c008d4ead5d3a660 (patch) | |
tree | b249173d7f2a508b61848993dc65068e7c399232 /app | |
parent | fa31559a37bfe394dedf4078789f1540e01fc5c7 (diff) |
Proper fix for artifacts trace migration which is fully safe
Diffstat (limited to 'app')
-rw-r--r-- | app/workers/create_trace_artifact_worker.rb | 4 |
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 |