Skip to content

Commit

Permalink
Add start delay in workflow start options (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
duoertai authored Mar 21, 2024
1 parent f89ed7f commit d295ead
Show file tree
Hide file tree
Showing 8 changed files with 140 additions and 60 deletions.
109 changes: 57 additions & 52 deletions gen/iwfidl/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,9 @@ components:
example:
stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -486,9 +486,9 @@ components:
WorkflowRetryPolicy:
example:
maximumAttempts: 1
initialIntervalSeconds: 4
initialIntervalSeconds: 7
maximumIntervalSeconds: 1
backoffCoefficient: 7.386282
backoffCoefficient: 1.2315135
properties:
initialIntervalSeconds:
type: integer
Expand Down Expand Up @@ -616,31 +616,32 @@ components:
type: object
WorkflowStartOptions:
example:
workflowStartDelaySeconds: 4
retryPolicy:
maximumAttempts: 1
initialIntervalSeconds: 4
initialIntervalSeconds: 7
maximumIntervalSeconds: 1
backoffCoefficient: 7.386282
backoffCoefficient: 1.2315135
workflowConfigOverride:
disableSystemSearchAttribute: true
continueAsNewThreshold: 7
continueAsNewPageSizeInBytes: 1
continueAsNewThreshold: 1
continueAsNewPageSizeInBytes: 4
idReusePolicy: null
searchAttributes:
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
key: key
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand All @@ -653,6 +654,9 @@ components:
$ref: '#/components/schemas/WorkflowIDReusePolicy'
cronSchedule:
type: string
workflowStartDelaySeconds:
format: int32
type: integer
retryPolicy:
$ref: '#/components/schemas/WorkflowRetryPolicy'
searchAttributes:
Expand Down Expand Up @@ -818,31 +822,32 @@ components:
backoffCoefficient: 5.637377
iwfWorkflowType: iwfWorkflowType
workflowStartOptions:
workflowStartDelaySeconds: 4
retryPolicy:
maximumAttempts: 1
initialIntervalSeconds: 4
initialIntervalSeconds: 7
maximumIntervalSeconds: 1
backoffCoefficient: 7.386282
backoffCoefficient: 1.2315135
workflowConfigOverride:
disableSystemSearchAttribute: true
continueAsNewThreshold: 7
continueAsNewPageSizeInBytes: 1
continueAsNewThreshold: 1
continueAsNewPageSizeInBytes: 4
idReusePolicy: null
searchAttributes:
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
key: key
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -999,18 +1004,18 @@ components:
searchAttributes:
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
key: key
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1267,18 +1272,18 @@ components:
searchAttributes:
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
key: key
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1334,8 +1339,8 @@ components:
example:
workflowConfig:
disableSystemSearchAttribute: true
continueAsNewThreshold: 7
continueAsNewPageSizeInBytes: 1
continueAsNewThreshold: 1
continueAsNewPageSizeInBytes: 4
workflowRunId: workflowRunId
workflowId: workflowId
properties:
Expand Down Expand Up @@ -1430,18 +1435,18 @@ components:
searchAttributes:
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
key: key
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1486,18 +1491,18 @@ components:
upsertSearchAttributes:
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
key: key
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1705,18 +1710,18 @@ components:
upsertSearchAttributes:
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
key: key
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1862,18 +1867,18 @@ components:
searchAttributes:
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
key: key
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1923,18 +1928,18 @@ components:
upsertSearchAttributes:
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
key: key
- stringValue: stringValue
valueType: null
integerValue: 1
integerValue: 6
boolValue: true
doubleValue: 6.84685269835264
doubleValue: 7.457744773683766
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -2650,8 +2655,8 @@ components:
WorkflowConfig:
example:
disableSystemSearchAttribute: true
continueAsNewThreshold: 7
continueAsNewPageSizeInBytes: 1
continueAsNewThreshold: 1
continueAsNewPageSizeInBytes: 4
properties:
disableSystemSearchAttribute:
type: boolean
Expand Down
26 changes: 26 additions & 0 deletions gen/iwfidl/docs/WorkflowStartOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**WorkflowIDReusePolicy** | Pointer to [**WorkflowIDReusePolicy**](WorkflowIDReusePolicy.md) | | [optional]
**CronSchedule** | Pointer to **string** | | [optional]
**WorkflowStartDelaySeconds** | Pointer to **int32** | | [optional]
**RetryPolicy** | Pointer to [**WorkflowRetryPolicy**](WorkflowRetryPolicy.md) | | [optional]
**SearchAttributes** | Pointer to [**[]SearchAttribute**](SearchAttribute.md) | | [optional]
**WorkflowConfigOverride** | Pointer to [**WorkflowConfig**](WorkflowConfig.md) | | [optional]
Expand Down Expand Up @@ -81,6 +82,31 @@ SetCronSchedule sets CronSchedule field to given value.

HasCronSchedule returns a boolean if a field has been set.

### GetWorkflowStartDelaySeconds

`func (o *WorkflowStartOptions) GetWorkflowStartDelaySeconds() int32`

GetWorkflowStartDelaySeconds returns the WorkflowStartDelaySeconds field if non-nil, zero value otherwise.

### GetWorkflowStartDelaySecondsOk

`func (o *WorkflowStartOptions) GetWorkflowStartDelaySecondsOk() (*int32, bool)`

GetWorkflowStartDelaySecondsOk returns a tuple with the WorkflowStartDelaySeconds field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetWorkflowStartDelaySeconds

`func (o *WorkflowStartOptions) SetWorkflowStartDelaySeconds(v int32)`

SetWorkflowStartDelaySeconds sets WorkflowStartDelaySeconds field to given value.

### HasWorkflowStartDelaySeconds

`func (o *WorkflowStartOptions) HasWorkflowStartDelaySeconds() bool`

HasWorkflowStartDelaySeconds returns a boolean if a field has been set.

### GetRetryPolicy

`func (o *WorkflowStartOptions) GetRetryPolicy() WorkflowRetryPolicy`
Expand Down
Loading

0 comments on commit d295ead

Please sign in to comment.