Cancel an activity
Back to home
On this page
Try for 30 days
Flexible, version-controlled infrastructure provisioning and development-to-production workflows
If you have a stuck activity or you pushed a change you know doesn’t work, you can cancel a running or pending activity on an environment. This works for activities such as builds, cron jobs, and source operations.
You can cancel activities using the CLI or in the Console.
Run the following command:
platform activity:cancel
If you have more than one running or pending activity, choose which activity to cancel.
You can also cancel a specific activity by specifying its ID:
platform activity:cancel ACTIVITY_ID
Get the ID from the activity log.
- Open the environment where you want to cancel an activity.
- In the activity log, click More next to the activity you want to cancel.
- Click Cancel.
Non-cancellable activities
An activity can finish in between when you load the Console and when you click Cancel. For example, when the activity is a source operation and the related build hook has already completed. In such cases, you get a message that the activity can’t be cancelled.