summaryrefslogtreecommitdiff
path: root/app/workers/pipeline_update_worker.rb
blob: 5b742461f7a0d11746550733aad321498e6d59d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class PipelineUpdateWorker
  include ApplicationWorker
  include PipelineQueue

  queue_namespace :pipeline_processing
  latency_sensitive_worker!

  # rubocop: disable CodeReuse/ActiveRecord
  def perform(pipeline_id)
    Ci::Pipeline.find_by(id: pipeline_id)
      .try(:update_status)
  end
  # rubocop: enable CodeReuse/ActiveRecord
end