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-02-26 09:06:04 -05:00
|
|
|
Ci::Build.find_by(id: job_id).try do |job|
|
2018-02-23 07:08:38 -05:00
|
|
|
job.trace.archive!
|
2018-01-28 10:03:22 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|