debian-mirror-gitlab/app/workers/create_trace_artifact_worker.rb
2018-03-17 18:26:18 +05:30

10 lines
274 B
Ruby

class CreateTraceArtifactWorker
include ApplicationWorker
include PipelineQueue
def perform(job_id)
Ci::Build.preload(:project, :user).find_by(id: job_id).try do |job|
Ci::CreateTraceArtifactService.new(job.project, job.user).execute(job)
end
end
end