debian-mirror-gitlab/app/workers/archive_trace_worker.rb

13 lines
254 B
Ruby
Raw Normal View History

2018-11-08 19:23:39 +05:30
# frozen_string_literal: true
2018-03-27 19:54:05 +05:30
class ArchiveTraceWorker
include ApplicationWorker
include PipelineBackgroundQueue
def perform(job_id)
2018-11-08 19:23:39 +05:30
Ci::Build.without_archived_trace.find_by(id: job_id).try do |job|
2018-03-27 19:54:05 +05:30
job.trace.archive!
end
end
end