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-03-06 14:20:36 +0300
committerShinya Maeda <shinya@gitlab.com>2018-03-06 15:44:15 +0300
commit335bc0fec05d282e2e4daa0e4a1bcb82ddec0594 (patch)
tree33c70be018230136c144023629a84393505792c8 /app/workers/archive_trace_worker.rb
parent7bbd5f6e31036a9ab6305b14eedbad25c5501648 (diff)
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.rb10
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