-
Notifications
You must be signed in to change notification settings - Fork 220
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
Fail registration without versioning behavior #1742
Fail registration without versioning behavior #1742
Conversation
internal/workflow.go
Outdated
@@ -413,8 +413,7 @@ type ( | |||
// inside a workflow as a child workflow. | |||
Name string | |||
DisableAlreadyRegisteredCheck bool | |||
// Optional: Provides a default Versioning Behavior to workflows of this type. | |||
// See workflow.SetVersioningBehavior to override this default. | |||
// Optional: Provides a Versioning Behavior to workflows of this type. |
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.
Should we mention that this is not optional of there is no default behavior and DeploymentOptions.UseBuildIDForVersioning==true
?
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.
Good point, I'll make this more clear.
|
||
ts.worker.Stop() | ||
ts.workerStopped = true | ||
w := worker.New(ts.client, ts.taskQueueName, worker.Options{ | ||
w := worker.New(c, ts.taskQueueName, worker.Options{ | ||
BuildID: "1.0", | ||
UseBuildIDForVersioning: true, |
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 there any different between UseBuildIDForVersioning
and DeploymentOptions.UseBuildIDForVersioning
? Do we want to make UseBuildIDForVersioning
exclusively for versioning 1-2 and the latter for versioning 3?
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.
There is no DeploymentOptions.UseBuildIDForVersioning
until we deprecate versioning-2, otherwise it is just too confusing to have same field twice without deprecation.
6631916
into
temporalio:versioning-3
What was changed
Remove programmatic SetVersioningBehavior API, and fail workflow registration when behavior missing.See #1739 for details.
Fail registration of workflow types without versioning behavior #1739
One system test