Skip to content

Commit

Permalink
IWF-119: Options to ignore already started error (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwolczynski authored Oct 30, 2024
1 parent 2cc3fbf commit 2d339d2
Show file tree
Hide file tree
Showing 16 changed files with 669 additions and 27 deletions.
2 changes: 2 additions & 0 deletions gen/iwfidl/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ docs/TimerStatus.md
docs/TriggerContinueAsNewRequest.md
docs/WaitUntilApiFailurePolicy.md
docs/WorkerErrorResponse.md
docs/WorkflowAlreadyStartedOptions.md
docs/WorkflowConditionalClose.md
docs/WorkflowConditionalCloseType.md
docs/WorkflowConfig.md
Expand Down Expand Up @@ -122,6 +123,7 @@ model_timer_status.go
model_trigger_continue_as_new_request.go
model_wait_until_api_failure_policy.go
model_worker_error_response.go
model_workflow_already_started_options.go
model_workflow_conditional_close.go
model_workflow_conditional_close_type.go
model_workflow_config.go
Expand Down
1 change: 1 addition & 0 deletions gen/iwfidl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ Class | Method | HTTP request | Description
- [TriggerContinueAsNewRequest](docs/TriggerContinueAsNewRequest.md)
- [WaitUntilApiFailurePolicy](docs/WaitUntilApiFailurePolicy.md)
- [WorkerErrorResponse](docs/WorkerErrorResponse.md)
- [WorkflowAlreadyStartedOptions](docs/WorkflowAlreadyStartedOptions.md)
- [WorkflowConditionalClose](docs/WorkflowConditionalClose.md)
- [WorkflowConditionalCloseType](docs/WorkflowConditionalCloseType.md)
- [WorkflowConfig](docs/WorkflowConfig.md)
Expand Down
20 changes: 20 additions & 0 deletions gen/iwfidl/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,18 @@ components:
executeApiDataAttributesLoadingPolicy:
$ref: '#/components/schemas/PersistenceLoadingPolicy'
type: object
WorkflowAlreadyStartedOptions:
example:
requestId: requestId
ignoreAlreadyStartedError: true
properties:
ignoreAlreadyStartedError:
type: boolean
requestId:
type: string
required:
- ignoreAlreadyStartedError
type: object
WorkflowStartOptions:
example:
workflowStartDelaySeconds: 4
Expand Down Expand Up @@ -716,6 +728,9 @@ components:
workflowIDReusePolicy: null
useMemoForDataAttributes: true
cronSchedule: cronSchedule
workflowAlreadyStartedOptions:
requestId: requestId
ignoreAlreadyStartedError: true
dataAttributes:
- value:
data: data
Expand Down Expand Up @@ -749,6 +764,8 @@ components:
$ref: '#/components/schemas/IDReusePolicy'
useMemoForDataAttributes:
type: boolean
workflowAlreadyStartedOptions:
$ref: '#/components/schemas/WorkflowAlreadyStartedOptions'
type: object
WorkflowIDReusePolicy:
enum:
Expand Down Expand Up @@ -984,6 +1001,9 @@ components:
workflowIDReusePolicy: null
useMemoForDataAttributes: true
cronSchedule: cronSchedule
workflowAlreadyStartedOptions:
requestId: requestId
ignoreAlreadyStartedError: true
dataAttributes:
- value:
data: data
Expand Down
77 changes: 77 additions & 0 deletions gen/iwfidl/docs/WorkflowAlreadyStartedOptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# WorkflowAlreadyStartedOptions

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**IgnoreAlreadyStartedError** | **bool** | |
**RequestId** | Pointer to **string** | | [optional]

## Methods

### NewWorkflowAlreadyStartedOptions

`func NewWorkflowAlreadyStartedOptions(ignoreAlreadyStartedError bool, ) *WorkflowAlreadyStartedOptions`

NewWorkflowAlreadyStartedOptions instantiates a new WorkflowAlreadyStartedOptions object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewWorkflowAlreadyStartedOptionsWithDefaults

`func NewWorkflowAlreadyStartedOptionsWithDefaults() *WorkflowAlreadyStartedOptions`

NewWorkflowAlreadyStartedOptionsWithDefaults instantiates a new WorkflowAlreadyStartedOptions object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetIgnoreAlreadyStartedError

`func (o *WorkflowAlreadyStartedOptions) GetIgnoreAlreadyStartedError() bool`

GetIgnoreAlreadyStartedError returns the IgnoreAlreadyStartedError field if non-nil, zero value otherwise.

### GetIgnoreAlreadyStartedErrorOk

`func (o *WorkflowAlreadyStartedOptions) GetIgnoreAlreadyStartedErrorOk() (*bool, bool)`

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

### SetIgnoreAlreadyStartedError

`func (o *WorkflowAlreadyStartedOptions) SetIgnoreAlreadyStartedError(v bool)`

SetIgnoreAlreadyStartedError sets IgnoreAlreadyStartedError field to given value.


### GetRequestId

`func (o *WorkflowAlreadyStartedOptions) GetRequestId() string`

GetRequestId returns the RequestId field if non-nil, zero value otherwise.

### GetRequestIdOk

`func (o *WorkflowAlreadyStartedOptions) GetRequestIdOk() (*string, bool)`

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

### SetRequestId

`func (o *WorkflowAlreadyStartedOptions) SetRequestId(v string)`

SetRequestId sets RequestId field to given value.

### HasRequestId

`func (o *WorkflowAlreadyStartedOptions) HasRequestId() bool`

HasRequestId returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


26 changes: 26 additions & 0 deletions gen/iwfidl/docs/WorkflowStartOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**WorkflowConfigOverride** | Pointer to [**WorkflowConfig**](WorkflowConfig.md) | | [optional]
**IdReusePolicy** | Pointer to [**IDReusePolicy**](IDReusePolicy.md) | | [optional]
**UseMemoForDataAttributes** | Pointer to **bool** | | [optional]
**WorkflowAlreadyStartedOptions** | Pointer to [**WorkflowAlreadyStartedOptions**](WorkflowAlreadyStartedOptions.md) | | [optional]

## Methods

Expand Down Expand Up @@ -258,6 +259,31 @@ SetUseMemoForDataAttributes sets UseMemoForDataAttributes field to given value.

HasUseMemoForDataAttributes returns a boolean if a field has been set.

### GetWorkflowAlreadyStartedOptions

`func (o *WorkflowStartOptions) GetWorkflowAlreadyStartedOptions() WorkflowAlreadyStartedOptions`

GetWorkflowAlreadyStartedOptions returns the WorkflowAlreadyStartedOptions field if non-nil, zero value otherwise.

### GetWorkflowAlreadyStartedOptionsOk

`func (o *WorkflowStartOptions) GetWorkflowAlreadyStartedOptionsOk() (*WorkflowAlreadyStartedOptions, bool)`

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

### SetWorkflowAlreadyStartedOptions

`func (o *WorkflowStartOptions) SetWorkflowAlreadyStartedOptions(v WorkflowAlreadyStartedOptions)`

SetWorkflowAlreadyStartedOptions sets WorkflowAlreadyStartedOptions field to given value.

### HasWorkflowAlreadyStartedOptions

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

HasWorkflowAlreadyStartedOptions returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
151 changes: 151 additions & 0 deletions gen/iwfidl/model_workflow_already_started_options.go

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

Loading

0 comments on commit 2d339d2

Please sign in to comment.