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

11 lines
274 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
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