feat(executions): allow suspending an execution at a breakpoint

- When creating an execution, you can pass a breakpoint of the form `taskId.value` and an execution kind.
- An execution with a breakpoint will be suspended in the `BREAKPOINT` state when arriving at the point where the breakpoint task should be executed
- You can resume an execution from a breakpoint, this would resume the execution and remove the existing breakpoint. At this time a new breakpoint can be passed.
- You can pass a breakpoint when replaying an execution.

Part-of: https://github.com/kestra-io/kestra-ee/issues/1547
This commit is contained in:
Loïc Mathieu
2025-06-05 15:45:36 +02:00
parent cf4f6554e6
commit 05b50c22e3
11 changed files with 241 additions and 25 deletions

View File

@@ -0,0 +1,17 @@
ALTER TABLE executions ALTER COLUMN "state_current" ENUM (
'CREATED',
'RUNNING',
'PAUSED',
'RESTARTED',
'KILLING',
'SUCCESS',
'WARNING',
'FAILED',
'KILLED',
'CANCELLED',
'QUEUED',
'RETRYING',
'RETRIED',
'SKIPPED',
'BREAKPOINT'
) NOT NULL GENERATED ALWAYS AS (JQ_STRING("value", '.state.current'));