Commit 08e4ac3c authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Add worker queue

parent 1be692f031a9
......@@ -7,7 +7,7 @@ def execute(job)
job.create_job_artifacts_trace!(
project: job.project,
file_type: :trace,
file: stream.path) if stream.file?
file: stream) if stream.file?
end
end
end
......
......@@ -43,6 +43,7 @@
- pipeline_creation:run_pipeline_schedule
- pipeline_default:build_coverage
- pipeline_default:build_trace_sections
- pipeline_default:create_trace_artifact
- pipeline_default:pipeline_metrics
- pipeline_default:pipeline_notification
- pipeline_default:update_head_pipeline_for_merge_request
......
......@@ -4,7 +4,7 @@ class CreateTraceArtifactWorker
def perform(job_id)
Ci::Build.find_by(id: job_id).try do |job|
Ci::CreateTraceArtifactService.new.execute(job)
Ci::CreateTraceArtifactService.new(nil, nil).execute(job)
end
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment