-
Notifications
You must be signed in to change notification settings - Fork 68
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
[Reset] Define child handling policies #498
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,13 @@ enum ParentClosePolicy { | |
PARENT_CLOSE_POLICY_REQUEST_CANCEL = 3; | ||
} | ||
|
||
// ResetChildPolicy specifies the policy to apply to child workflows when a parent is reset. | ||
enum ResetChildPolicy { | ||
RESET_CHILD_POLICY_UNSPECIFIED = 0; | ||
// Reconnects to the currently running child. | ||
RESET_CHILD_POLICY_RECONNECT = 1; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought we initially only support terminateAndRerun for children initiated after the reset point? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. We don't need it immediately. But I need a way to know if the current run is a result of a reset. So wanted to add this. |
||
} | ||
|
||
enum ContinueAsNewInitiator { | ||
CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED = 0; | ||
// The workflow itself requested to continue as new | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this enum referenced/used in the API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have the corresponding change yet. The intent is to use it in
ResetWorkflowExecutionRequest
.api/temporal/api/workflowservice/v1/request_response.proto
Line 763 in bae790a
For now I'm holding off on this. Will update this PR when I get to working on the API.