Skip to content
Ona Docs

CancelWorkflowExecutionAction

automations.cancel_execution_action(AutomationCancelExecutionActionParams**kwargs) -> object
POST/gitpod.v1.WorkflowService/CancelWorkflowExecutionAction

Cancels a running workflow execution action.

Use this method to:

  • Stop long-running actions
  • Cancel failed actions
  • Manage resource usage

Examples

  • Cancel execution action:

    Stops a running workflow execution action.

    workflowExecutionActionId: "a1b2c3d4-5e6f-7890-abcd-ef1234567890"
ParametersExpand Collapse
workflow_execution_action_id: Optional[str]
formatuuid
ReturnsExpand Collapse
object

CancelWorkflowExecutionAction

import os
from gitpod import Gitpod

client = Gitpod(
    bearer_token=os.environ.get("GITPOD_API_KEY"),  # This is the default and can be omitted
)
response = client.automations.cancel_execution_action(
    workflow_execution_action_id="a1b2c3d4-5e6f-7890-abcd-ef1234567890",
)
print(response)
{}
Returns Examples
{}