Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update retry policy #20

Merged
merged 1 commit into from
Nov 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions iwf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,21 +280,22 @@ components:
- INT
RetryPolicy:
type: object
required:
- initialInterval
properties:
initialInterval:
initialInterval: # default to 1s
type: number
backoffCoefficient:
backoffCoefficient: # default to 2
type: number
maximumInterval:
maximumInterval: # default to 100x of initial interval
type: number
maximumAttempts:
maximumAttempts: # default to 0, means unlimited
type: integer
nonRetryableErrorTypes:
type: array
items:
type: string
# TODO NOTE:
# 1. this will need more work on server to allow customize error types for workflow results
# 2. probably only can apply to workflow
# nonRetryableErrorTypes:
# type: array
# items:
# type: string
WorkflowStateOptions:
type: object
properties:
Expand All @@ -304,6 +305,10 @@ components:
$ref: '#/components/schemas/AttributesLoadingPolicy'
commandCarryOverPolicy:
$ref: '#/components/schemas/CommandCarryOverPolicy'
startApiRetryPolicy:
$ref: '#/components/schemas/RetryPolicy'
decideApiRetryPolicy:
$ref: '#/components/schemas/RetryPolicy'
WorkflowStartOptions:
type: object
properties:
Expand Down