-
Notifications
You must be signed in to change notification settings - Fork 95
Add request IDs to activity update, unpause, and reset #844
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
Merged
+48
−18
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
dc3fc7f
Add request IDs to activity update, unpause, and reset
fretz12 a3d77b8
Address PR comments
fretz12 bbac65a
regen api
fretz12 c1dfa8c
shorten comment
fretz12 d9286b5
comment cleanup
fretz12 e33df82
Merge branch 'main' into fredtzeng/saa-req-id
fretz12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2186,7 +2186,7 @@ message UpdateActivityExecutionOptionsRequest { | |
| string workflow_id = 2; | ||
| // The ID of the activity to target. | ||
| string activity_id = 3; | ||
| // Run ID of the workflow or standalone activity. | ||
| // Run ID of the workflow or standalone activity. If empty, targets the latest run. | ||
| string run_id = 4; | ||
|
|
||
| // The identity of the client who initiated this request | ||
|
|
@@ -2207,6 +2207,9 @@ message UpdateActivityExecutionOptionsRequest { | |
|
|
||
| // Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities. | ||
| string resource_id = 9; | ||
|
|
||
| // Used to de-dupe update requests. | ||
| string request_id = 10; | ||
| } | ||
|
|
||
| // Deprecated. Use `UpdateActivityExecutionOptionsResponse`. | ||
|
|
@@ -2256,7 +2259,7 @@ message PauseActivityExecutionRequest { | |
| string workflow_id = 2; | ||
| // The ID of the activity to target. | ||
| string activity_id = 3; | ||
| // Run ID of the workflow or standalone activity. | ||
| // Run ID of the workflow or standalone activity. If empty, targets the latest run. | ||
| string run_id = 4; | ||
|
|
||
| // The identity of the client who initiated this request. | ||
|
|
@@ -2318,7 +2321,7 @@ message UnpauseActivityExecutionRequest { | |
| string workflow_id = 2; | ||
| // The ID of the activity to target. | ||
| string activity_id = 3; | ||
| // Run ID of the workflow or standalone activity. | ||
| // Run ID of the workflow or standalone activity. If empty, targets the latest run. | ||
| string run_id = 4; | ||
|
|
||
| // The identity of the client who initiated this request. | ||
|
|
@@ -2338,6 +2341,9 @@ message UnpauseActivityExecutionRequest { | |
|
|
||
| // Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities. | ||
| string resource_id = 10; | ||
|
|
||
| // Used to de-dupe unpause requests. | ||
| string request_id = 11; | ||
| } | ||
|
|
||
| // Deprecated. Use `UnpauseActivityExecutionResponse`. | ||
|
|
@@ -2394,7 +2400,7 @@ message ResetActivityExecutionRequest { | |
| string workflow_id = 2; | ||
| // The ID of the activity to target. | ||
| string activity_id = 3; | ||
| // Run ID of the workflow or standalone activity. | ||
| // Run ID of the workflow or standalone activity. If empty, targets the latest run. | ||
| string run_id = 4; | ||
|
|
||
| // The identity of the client who initiated this request. | ||
|
|
@@ -2414,6 +2420,9 @@ message ResetActivityExecutionRequest { | |
|
|
||
| // Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities. | ||
| string resource_id = 9; | ||
|
|
||
| // Used to de-dupe reset requests. | ||
| string request_id = 10; | ||
| } | ||
|
|
||
| // Deprecated. Use `ResetActivityExecutionRequest`. | ||
|
|
@@ -3559,7 +3568,7 @@ message CountNexusOperationExecutionsResponse { | |
| message RequestCancelActivityExecutionRequest { | ||
| string namespace = 1; | ||
| string activity_id = 2; | ||
| // Activity run ID, targets the latest run if run_id is empty. | ||
| // Activity run ID. If empty, targets the latest run. | ||
|
Contributor
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. For consistency, do you want to remove the "Specify a run ID to avoid retrying ...." from RequestCancel and Terminate?
Contributor
Author
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. Agreed, removed |
||
| string run_id = 3; | ||
| // The identity of the worker/client. | ||
| string identity = 4; | ||
|
|
@@ -3576,7 +3585,7 @@ message RequestCancelActivityExecutionResponse { | |
| message TerminateActivityExecutionRequest { | ||
| string namespace = 1; | ||
| string activity_id = 2; | ||
| // Activity run ID, targets the latest run if run_id is empty. | ||
| // Activity run ID. If empty, targets the latest run. | ||
| string run_id = 3; | ||
| // The identity of the worker/client. | ||
| string identity = 4; | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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 think it's hard to explain and the comment risks making it more confusing, not less. (what is "retrying"?) I vote we just follow SANO and keep it to
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.
yea it's hard to explain a corner in a field doc. I'll simplify