debian-mirror-gitlab/lib/gitlab/ci/pipeline/chain/cancel_pending_pipelines.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
354 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
module Pipeline
module Chain
class CancelPendingPipelines < Chain::Base
def perform!
2023-04-23 21:23:45 +05:30
::Ci::CancelRedundantPipelinesWorker.perform_async(pipeline.id)
2020-10-24 23:57:45 +05:30
end
def break?
false
end
end
end
end
end
end