2016-09-19 09:03:51 -04:00
|
|
|
class ProcessPipelineWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
|
|
|
sidekiq_options queue: :default
|
|
|
|
|
2016-10-03 10:30:11 -04:00
|
|
|
def perform(pipeline_id)
|
2016-10-04 10:34:22 -04:00
|
|
|
Ci::Pipeline.find_by(id: pipeline_id)
|
|
|
|
.try(:process!)
|
2016-09-19 09:03:51 -04:00
|
|
|
end
|
|
|
|
end
|