Skip to content

Commit

Permalink
add start delay
Browse files Browse the repository at this point in the history
  • Loading branch information
duoertai committed Mar 25, 2024
1 parent 3a2146c commit 08b1efc
Show file tree
Hide file tree
Showing 41 changed files with 1,349 additions and 69 deletions.
2 changes: 1 addition & 1 deletion gen/iwfidl/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.1
7.1.0
6 changes: 3 additions & 3 deletions gen/iwfidl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ Default configuration comes with `Servers` field that contains server objects as

### Select Server Configuration

For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`.
For using other server than the one defined on index 0 set context value `iwfidl.ContextServerIndex` of type `int`.

```golang
ctx := context.WithValue(context.Background(), iwfidl.ContextServerIndex, 1)
```

### Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`.
Templated server URL is formatted using default variables from configuration or from context value `iwfidl.ContextServerVariables` of type `map[string]string`.

```golang
ctx := context.WithValue(context.Background(), iwfidl.ContextServerVariables, map[string]string{
Expand All @@ -58,7 +58,7 @@ Note, enum values are always validated and all unused variables are silently ign

Each operation can use different server URL defined using `OperationServers` map in the `Configuration`.
An operation is uniquely identified by `"{classname}Service.{nickname}"` string.
Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps.
Similar rules for overriding default operation server index and variables applies by using `iwfidl.ContextOperationServerIndices` and `iwfidl.ContextOperationServerVariables` context maps.

```golang
ctx := context.WithValue(context.Background(), iwfidl.ContextOperationServerIndices, map[string]int{
Expand Down
83 changes: 44 additions & 39 deletions gen/iwfidl/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -485,10 +485,10 @@ components:
type: object
WorkflowRetryPolicy:
example:
maximumAttempts: 7
initialIntervalSeconds: 3
maximumIntervalSeconds: 4
backoffCoefficient: 2.027123
maximumAttempts: 1
initialIntervalSeconds: 2
maximumIntervalSeconds: 7
backoffCoefficient: 4.145608
properties:
initialIntervalSeconds:
type: integer
Expand Down Expand Up @@ -573,22 +573,23 @@ components:
type: object
WorkflowStartOptions:
example:
workflowStartDelaySeconds: 3
retryPolicy:
maximumAttempts: 7
initialIntervalSeconds: 3
maximumIntervalSeconds: 4
backoffCoefficient: 2.027123
maximumAttempts: 1
initialIntervalSeconds: 2
maximumIntervalSeconds: 7
backoffCoefficient: 4.145608
workflowConfigOverride:
disableSystemSearchAttribute: true
continueAsNewThreshold: 1
continueAsNewPageSizeInBytes: 6
continueAsNewThreshold: 6
continueAsNewPageSizeInBytes: 7
idReusePolicy: null
searchAttributes:
- stringValue: stringValue
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand All @@ -597,7 +598,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand All @@ -609,6 +610,9 @@ components:
$ref: '#/components/schemas/IDReusePolicy'
cronSchedule:
type: string
workflowStartDelaySeconds:
format: int32
type: integer
retryPolicy:
$ref: '#/components/schemas/WorkflowRetryPolicy'
searchAttributes:
Expand Down Expand Up @@ -741,22 +745,23 @@ components:
persistenceLoadingType: null
iwfWorkflowType: iwfWorkflowType
workflowStartOptions:
workflowStartDelaySeconds: 3
retryPolicy:
maximumAttempts: 7
initialIntervalSeconds: 3
maximumIntervalSeconds: 4
backoffCoefficient: 2.027123
maximumAttempts: 1
initialIntervalSeconds: 2
maximumIntervalSeconds: 7
backoffCoefficient: 4.145608
workflowConfigOverride:
disableSystemSearchAttribute: true
continueAsNewThreshold: 1
continueAsNewPageSizeInBytes: 6
continueAsNewThreshold: 6
continueAsNewPageSizeInBytes: 7
idReusePolicy: null
searchAttributes:
- stringValue: stringValue
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand All @@ -765,7 +770,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -923,7 +928,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand All @@ -932,7 +937,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1249,7 +1254,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand All @@ -1258,7 +1263,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1305,7 +1310,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand All @@ -1314,7 +1319,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1494,7 +1499,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand All @@ -1503,7 +1508,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1559,8 +1564,8 @@ components:
example:
workflowConfig:
disableSystemSearchAttribute: true
continueAsNewThreshold: 1
continueAsNewPageSizeInBytes: 6
continueAsNewThreshold: 6
continueAsNewPageSizeInBytes: 7
workflowRunId: workflowRunId
workflowId: workflowId
properties:
Expand All @@ -1581,7 +1586,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand All @@ -1590,7 +1595,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1737,7 +1742,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand All @@ -1746,7 +1751,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -1798,7 +1803,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand All @@ -1807,7 +1812,7 @@ components:
valueType: null
integerValue: 1
boolValue: true
doubleValue: 1.0246457001441578
doubleValue: 1.4894159098541704
stringArrayValue:
- stringArrayValue
- stringArrayValue
Expand Down Expand Up @@ -2396,8 +2401,8 @@ components:
WorkflowConfig:
example:
disableSystemSearchAttribute: true
continueAsNewThreshold: 1
continueAsNewPageSizeInBytes: 6
continueAsNewThreshold: 6
continueAsNewPageSizeInBytes: 7
properties:
disableSystemSearchAttribute:
type: boolean
Expand Down
14 changes: 6 additions & 8 deletions gen/iwfidl/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
------------ | ------------- | ------------- | -------------
**IdReusePolicy** | Pointer to [**IDReusePolicy**](IDReusePolicy.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 @@ -80,6 +81,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 08b1efc

Please sign in to comment.