Skip to content

How to prevent EventBridge schedule from stopping CodePipeline executions?

0

I'm using CodePipeline Type: V2 with Execution mode: QUEUED.

When commits push, the executions get queued correctly.

However, when the pipeline is triggered by an EventBridge Schedule, it forces the execution to stop and starts a new one.

Is there a way to disable that behaviour?

1 Answer
-1

Hi,

The simplest way to achieve what you need is to interpose a Lambda between the EventBridge Schedule and the Pipeline. So, instead of acting directly on the Pipeline, the Schedule will trigger the Lambda.

The Lambda will check the status of the Pipeline:

  1. if Pipeline is Running, Lambda does nothing but terminates
  2. If Pipeline is not Running, it starts the Pipeline

Best,

Didier

EXPERT

answered 2 years ago

  • Hi, this is not the "simplest" nor does it do the same. I still want executions to be all queued, and not cancelled.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.