2018-06-27 03:23:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-06 06:20:36 -05:00
|
|
|
class ArchiveTraceWorker
|
2018-01-28 10:03:22 -05:00
|
|
|
include ApplicationWorker
|
2018-03-06 06:20:36 -05:00
|
|
|
include PipelineBackgroundQueue
|
2018-01-28 10:03:22 -05:00
|
|
|
|
|
|
|
def perform(job_id)
|
2018-07-04 03:11:57 -04:00
|
|
|
Ci::Build.without_archived_trace.find_by(id: job_id).try do |job|
|
|
|
|
job.trace.archive!
|
2018-01-28 10:03:22 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|