feat(runs): the first step that sets an outcome ends the run (#2042)
Add workflow.finish (completed, parked, waiting_approval, declined). A failed step parks the run unless it continues on failure, and a parked run retries from a top-level step, replaying the earlier steps' recorded results. Adds the retry-run operation and a Retry button on the run page.
This commit is contained in:
14 files changed
+526
-69
No files matched your search
@@ -2172,6 +2172,13 @@ components:
|
||||
- name
|
||||
- expected_version
|
||||
type: object
|
||||
RetryRunInputBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
from:
|
||||
description: The step to retry from, by id or as the trail names it; by default the step that parked the run
|
||||
type: string
|
||||
type: object
|
||||
RollbackInputBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
@@ -2312,6 +2319,8 @@ components:
|
||||
created_at:
|
||||
format: date-time
|
||||
type: string
|
||||
detail:
|
||||
type: string
|
||||
error:
|
||||
type: string
|
||||
finished_at:
|
||||
@@ -5073,6 +5082,38 @@ paths:
|
||||
summary: Get a run's decision trail
|
||||
tags:
|
||||
- Runs
|
||||
/api/runs/{id}/retry:
|
||||
post:
|
||||
operationId: retry-run
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
required: true
|
||||
schema:
|
||||
format: uuid
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/RetryRunInputBody"
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/RunsRunView"
|
||||
description: OK
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Retry a parked run from a step, keeping the results of the steps before it
|
||||
tags:
|
||||
- Runs
|
||||
/api/secret-engines:
|
||||
get:
|
||||
operationId: list-secret-engines
|
||||
|
||||
Reference in new issue
Block a user