-
Notifications
You must be signed in to change notification settings - Fork 85
Remove skip_generate_workflow_task from signal APIs #476
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
alexshtin
merged 2 commits into
temporalio:master
from
alexshtin:feature/remove-skip-wft-flag
Nov 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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 |
|---|---|---|
|
|
@@ -654,8 +654,7 @@ message SignalWorkflowExecutionRequest { | |
| // Headers that are passed with the signal to the processing workflow. | ||
| // These can include things like auth or tracing tokens. | ||
| temporal.api.common.v1.Header header = 8; | ||
| // Indicates that a new workflow task should not be generated when this signal is received. | ||
| bool skip_generate_workflow_task = 9; | ||
| reserved 9; | ||
|
Member
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 think we need to do the same thing here as we did with the history, we need to deprecate/document but not remove the field. These things are part of the HTTP API and need to be JSON compatible. |
||
|
|
||
| // Links to be associated with the WorkflowExecutionSignaled event. | ||
| repeated temporal.api.common.v1.Link links = 10; | ||
|
|
@@ -708,13 +707,11 @@ message SignalWithStartWorkflowExecutionRequest { | |
| temporal.api.common.v1.Header header = 19; | ||
| // Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`. | ||
| // Note that the signal will be delivered with the first workflow task. If the workflow gets | ||
| // another SignalWithStartWorkflow before the delay and `skip_generate_workflow_task` is false | ||
| // or not set, a workflow task will be dispatched immediately and the rest of the delay period | ||
| // will be ignored, even if that request also had a delay. Signal via SignalWorkflowExecution | ||
| // will not unblock the workflow. | ||
| // another SignalWithStartWorkflow before the delay a workflow task will be dispatched immediately | ||
| // and the rest of the delay period will be ignored, even if that request also had a delay. | ||
| // Signal via SignalWorkflowExecution will not unblock the workflow. | ||
| google.protobuf.Duration workflow_start_delay = 20; | ||
| // Indicates that a new workflow task should not be generated when this signal is received. | ||
| bool skip_generate_workflow_task = 21; | ||
| reserved 21; | ||
| // Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionInfo | ||
| // for use by user interfaces to display the fixed as-of-start summary and details of the | ||
| // workflow. | ||
|
|
||
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.
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 do not believe this is a safe/compatible change. We have an obligation to have JSON/field-name compatibility, not just proto binary compatibility, especially for history but also for RPC requests since we have an HTTP API. Can we just document that it's deprecated/ignored?