diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-03-06 20:20:36 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-03-06 21:44:15 +0900 |
commit | 335bc0fec05d282e2e4daa0e4a1bcb82ddec0594 (patch) | |
tree | 33c70be018230136c144023629a84393505792c8 /app/workers/archive_trace_worker.rb | |
parent | 7bbd5f6e31036a9ab6305b14eedbad25c5501648 (diff) | |
download | gitlab-ce-335bc0fec05d282e2e4daa0e4a1bcb82ddec0594.tar.gz |
Integrate two workers into one ArchiveTraceWorker with pipeline_background queue. This queue takes loqer precedence than pipeline_default.
Diffstat (limited to 'app/workers/archive_trace_worker.rb')
-rw-r--r-- | app/workers/archive_trace_worker.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/workers/archive_trace_worker.rb b/app/workers/archive_trace_worker.rb new file mode 100644 index 00000000000..dea7425ad88 --- /dev/null +++ b/app/workers/archive_trace_worker.rb @@ -0,0 +1,10 @@ +class ArchiveTraceWorker + include ApplicationWorker + include PipelineBackgroundQueue + + def perform(job_id) + Ci::Build.find_by(id: job_id).try do |job| + job.trace.archive! + end + end +end |