Execution App Block CancelExecutionButton

Execution App Block CancelExecutionButton

Certified

A block for displaying a button to cancel an execution.

yaml
type: io.kestra.plugin.ee.apps.execution.blocks.CancelExecutionButton

Let the user cancel the execution while it runs or waits for approval

yaml
# Requires a companion flow, vm_request (not shown), with a `vm_size` input, an `approval` Pause task and a `provision` task that emits a VM asset.
id: vm_request
displayName: VM request
type: io.kestra.plugin.ee.apps.Execution
namespace: company.team
flowId: vm_request
access:
  type: PRIVATE

layout:
  - on: OPEN
    blocks:
      - type: io.kestra.plugin.ee.apps.execution.blocks.CreateExecutionForm
      - type: io.kestra.plugin.ee.apps.execution.blocks.CreateExecutionButton
        text: Request VM

  - on: RUNNING
    blocks:
      - type: io.kestra.plugin.ee.apps.core.blocks.Loading
      - type: io.kestra.plugin.ee.apps.execution.blocks.CancelExecutionButton
        text: Cancel request
        style: DANGER

  - on: PAUSE
    blocks:
      - type: io.kestra.plugin.ee.apps.core.blocks.Markdown
        content: Your request is waiting for approval.
      - type: io.kestra.plugin.ee.apps.execution.blocks.CancelExecutionButton
        text: Withdraw request
        style: DANGER

  - on: FAILURE
    blocks:
      - type: io.kestra.plugin.ee.apps.core.blocks.Alert
        style: WARNING
        content: The request was canceled.
Properties

Whether the button spans the full width of its container.

DefaultDEFAULT
Possible Values
DEFAULTLARGESMALL

The size of the button.

Minimum>= 1

The number of columns the block spans when it is placed in a grid.

Defaults to 1. It is ignored outside a Grid block and cannot exceed the number of columns of the grid.

DefaultDEFAULT
Possible Values
DEFAULTPRIMARYSUCCESSINFOWARNINGDANGER

The style of the button.

DefaultCancel

The text of the button.