-
Notifications
You must be signed in to change notification settings - Fork 85
Deprecate WorkerVersionStamp and replace it with Deployment #484
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
Changes from all commits
aad202a
12ec5b2
bf6ec80
a432c29
d3bd873
9520339
31ffa20
b8d0303
a5f7440
f1d4c7b
cfdadbb
a6bcb91
5607c47
510d56b
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 |
|---|---|---|
|
|
@@ -351,6 +351,7 @@ message RespondWorkflowTaskCompletedRequest { | |
| // Version info of the worker who processed this task. This message's `build_id` field should | ||
| // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` | ||
| // field to true. See message docstrings for more. | ||
| // Deprecated. Use `deployment` and `versioning_behavior` instead. | ||
| temporal.api.common.v1.WorkerVersionStamp worker_version_stamp = 10; | ||
|
Comment on lines
+354
to
355
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'm guessing we don't do this consistently everywhere, but, I think deprecation warnings really should go first at the top of the comment. Also we probably want to use the official (I'd say let's apply this everywhere we're deprecating things for this)
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. Good to know. I'll add the official deprecation tag in my next PR. |
||
| // Default versioning behavior that is set at worker server level. | ||
| // Protocol messages piggybacking on a WFT as a transport | ||
|
|
@@ -362,9 +363,12 @@ message RespondWorkflowTaskCompletedRequest { | |
| temporal.api.common.v1.MeteringMetadata metering_metadata = 13; | ||
| reserved 14; | ||
| reserved "capabilities"; | ||
| // Must be set when versioning-3 is used (i.e. `worker_version_stamp.use_versioning` is `true` | ||
| // and `worker_version_stamp.deployment_series_name` is provided). | ||
| temporal.api.enums.v1.VersioningBehavior versioning_behavior = 15; | ||
|
Comment on lines
-365
to
-367
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. @antlai-temporal looking at the comment for versioning_behavior, I realized the stamp is not serving us well is v3 and is basically a twisted way of representing |
||
| // Deployment info of the worker that completed this task. Must be present if user has set | ||
| // `WorkerDeploymentOptions` regardless of versioning being enabled or not. | ||
| temporal.api.deployment.v1.Deployment deployment = 15; | ||
| // Versioning behavior of this workflow execution as set on the worker that completed this task. | ||
| // UNSPECIFIED means versioning is not enabled in the worker. | ||
| temporal.api.enums.v1.VersioningBehavior versioning_behavior = 16; | ||
| } | ||
|
|
||
| message RespondWorkflowTaskCompletedResponse { | ||
|
|
@@ -397,7 +401,11 @@ message RespondWorkflowTaskFailedRequest { | |
| // Version info of the worker who processed this task. This message's `build_id` field should | ||
| // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` | ||
| // field to true. See message docstrings for more. | ||
| // Deprecated. Use `deployment` instead. | ||
| temporal.api.common.v1.WorkerVersionStamp worker_version = 8; | ||
| // Deployment info of the worker that completed this task. Must be present if user has set | ||
| // `WorkerDeploymentOptions` regardless of versioning being enabled or not. | ||
| temporal.api.deployment.v1.Deployment deployment = 9; | ||
| } | ||
|
|
||
| message RespondWorkflowTaskFailedResponse { | ||
|
|
@@ -510,7 +518,11 @@ message RespondActivityTaskCompletedRequest { | |
| // Version info of the worker who processed this task. This message's `build_id` field should | ||
| // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` | ||
| // field to true. See message docstrings for more. | ||
| // Deprecated. Use `deployment` instead. | ||
| temporal.api.common.v1.WorkerVersionStamp worker_version = 5; | ||
| // Deployment info of the worker that completed this task. Must be present if user has set | ||
| // `WorkerDeploymentOptions` regardless of versioning being enabled or not. | ||
| temporal.api.deployment.v1.Deployment deployment = 6; | ||
| } | ||
|
|
||
| message RespondActivityTaskCompletedResponse { | ||
|
|
@@ -547,7 +559,11 @@ message RespondActivityTaskFailedRequest { | |
| // Version info of the worker who processed this task. This message's `build_id` field should | ||
| // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` | ||
| // field to true. See message docstrings for more. | ||
| // Deprecated. Use `deployment` instead. | ||
| temporal.api.common.v1.WorkerVersionStamp worker_version = 6; | ||
| // Deployment info of the worker that completed this task. Must be present if user has set | ||
| // `WorkerDeploymentOptions` regardless of versioning being enabled or not. | ||
| temporal.api.deployment.v1.Deployment deployment = 7; | ||
| } | ||
|
|
||
| message RespondActivityTaskFailedResponse { | ||
|
|
@@ -590,7 +606,11 @@ message RespondActivityTaskCanceledRequest { | |
| // Version info of the worker who processed this task. This message's `build_id` field should | ||
| // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` | ||
| // field to true. See message docstrings for more. | ||
| // Deprecated. Use `deployment` instead. | ||
| temporal.api.common.v1.WorkerVersionStamp worker_version = 5; | ||
| // Deployment info of the worker that completed this task. Must be present if user has set | ||
| // `WorkerDeploymentOptions` regardless of versioning being enabled or not. | ||
| temporal.api.deployment.v1.Deployment deployment = 6; | ||
| } | ||
|
|
||
| message RespondActivityTaskCanceledResponse { | ||
|
|
||
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.
Wait why is this both newly added and already deprecated?
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.
because we first added it. then I removed it in #483, then I realized it will break recent SDK changes that @antlai-temporal made in versioning-3 branch, then I added back in this PR as deprecated.
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 if we don't need it and it is just in my branch we could just delete it...