pipeline_process_worker.rb 191 Bytes
Newer Older
1
class PipelineProcessWorker
2 3 4 5
  include Sidekiq::Worker

  sidekiq_options queue: :default

6
  def perform(pipeline_id)
7 8
    Ci::Pipeline.find_by(id: pipeline_id)
      .try(:process!)
9 10
  end
end