feat(system): set taskrun attempt to resubmitted when a taskrun is resubmitted to a worker

Closes https://github.com/kestra-io/kestra/issues/12481
This commit is contained in:
Loïc Mathieu
2025-10-30 10:31:19 +01:00
parent 7c89eec500
commit c06ffb3063
8 changed files with 54 additions and 11 deletions

View File

@@ -0,0 +1,19 @@
ALTER TABLE executions MODIFY COLUMN `state_current` ENUM (
'CREATED',
'RUNNING',
'PAUSED',
'RESTARTED',
'KILLING',
'SUCCESS',
'WARNING',
'FAILED',
'KILLED',
'CANCELLED',
'QUEUED',
'RETRYING',
'RETRIED',
'SKIPPED',
'BREAKPOINT',
'SUBMITTED',
'RESUBMITTED'
) GENERATED ALWAYS AS (value ->> '$.state.current') STORED NOT NULL;