Execution App Block CancelExecutionButton
Certified
A block for displaying a button to cancel an execution.
Execution App Block CancelExecutionButton
Certified
A block for displaying a button to cancel an execution.
yaml
type: io.kestra.plugin.ee.apps.execution.blocks.CancelExecutionButtonExamples
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
fullWidth boolean
Whether the button spans the full width of its container.
size string
Default
DEFAULTPossible Values
DEFAULTLARGESMALLThe size of the button.
span integer
Minimum
>= 1The 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.
style string
Default
DEFAULTPossible Values
DEFAULTPRIMARYSUCCESSINFOWARNINGDANGERThe style of the button.
text string
Default
CancelThe text of the button.