Class: Gitlab::Ci::Pipeline::Chain::CancelPendingPipelines

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/ci/pipeline/chain/cancel_pending_pipelines.rb

Instance Attribute Summary

Attributes inherited from Base

#command, #config, #pipeline

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Ci::Pipeline::Chain::Base

Instance Method Details

#break?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/gitlab/ci/pipeline/chain/cancel_pending_pipelines.rb', line 12

def break?
  false
end

#perform!Object



8
9
10
# File 'lib/gitlab/ci/pipeline/chain/cancel_pending_pipelines.rb', line 8

def perform!
  ::Ci::CancelRedundantPipelinesWorker.perform_async(pipeline.id)
end