debian-mirror-gitlab/lib/gitlab/ci/pipeline/chain/cancel_pending_pipelines.rb
2023-04-23 21:23:45 +05:30

19 lines
354 B
Ruby

# frozen_string_literal: true
module Gitlab
module Ci
module Pipeline
module Chain
class CancelPendingPipelines < Chain::Base
def perform!
::Ci::CancelRedundantPipelinesWorker.perform_async(pipeline.id)
end
def break?
false
end
end
end
end
end
end