-
Notifications
You must be signed in to change notification settings - Fork 90
Add Callbacks and Links to Workflow Update #742
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
base: master
Are you sure you want to change the base?
Changes from 8 commits
bac598d
47c2e7f
caadbdf
134f733
4e2ba73
0b8d676
0576ff2
7b4cb2b
6c715c8
3472bf7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -858,6 +858,13 @@ message ChildWorkflowExecutionTerminatedEventAttributes { | |
| } | ||
|
|
||
| message WorkflowExecutionOptionsUpdatedEventAttributes { | ||
| message WorkflowUpdateOptionsUpdate { | ||
| // Request ID attached to the running workflow update so that subsequent requests with same | ||
| // request ID will be deduped | ||
| string attached_request_id = 3; | ||
| // Completion callbacks attached to the running workflow update. | ||
| repeated temporal.api.common.v1.Callback attached_completion_callbacks = 1; | ||
| } | ||
| // Versioning override upserted in this event. | ||
| // Ignored if nil or if unset_versioning_override is true. | ||
| temporal.api.workflow.v1.VersioningOverride versioning_override = 1; | ||
|
|
@@ -873,6 +880,8 @@ message WorkflowExecutionOptionsUpdatedEventAttributes { | |
| // Priority override upserted in this event. Represents the full priority; not just partial fields. | ||
| // Ignored if nil. | ||
| temporal.api.common.v1.Priority priority = 6; | ||
|
|
||
| map<string, WorkflowUpdateOptionsUpdate> workflow_update_options = 7; | ||
| } | ||
|
|
||
| // Not used anywhere. Use case is replaced by WorkflowExecutionOptionsUpdatedEventAttributes | ||
|
|
@@ -909,6 +918,9 @@ message WorkflowExecutionUpdateAcceptedEventAttributes { | |
| // The message payload of the original request message that initiated this | ||
| // update. | ||
| temporal.api.update.v1.Request accepted_request = 4; | ||
| // Completion callbacks attached when this update was started. | ||
| // TODO(quinn) maybe not needed | ||
|
||
| repeated temporal.api.common.v1.Callback completion_callbacks = 5; | ||
| } | ||
|
|
||
| message WorkflowExecutionUpdateCompletedEventAttributes { | ||
|
|
||
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.
Is the key here the update ID? I slightly prefer putting the update ID in the
WorkflowUpdateOptionsUpdateevent so it's clear what the field just by the name. That would turn this field's type torepeated WorkflowUpdateOptionsUpdate.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.
Yeah I thought we would need to index into this but we never ended up needing to