e7ee84aad4
This implements the support for `needs:` keyword as part of GitLab CI. That makes some of the jobs to be run out of order.
16 lines
374 B
Ruby
16 lines
374 B
Ruby
# frozen_string_literal: true
|
|
|
|
class BuildProcessWorker
|
|
include ApplicationWorker
|
|
include PipelineQueue
|
|
|
|
queue_namespace :pipeline_processing
|
|
|
|
# rubocop: disable CodeReuse/ActiveRecord
|
|
def perform(build_id)
|
|
CommitStatus.find_by(id: build_id).try do |build|
|
|
build.pipeline.process!(build.name)
|
|
end
|
|
end
|
|
# rubocop: enable CodeReuse/ActiveRecord
|
|
end
|