Skip to content

Commit

Permalink
Exclude versioning-2 from panic
Browse files Browse the repository at this point in the history
  • Loading branch information
antlai-temporal committed Dec 3, 2024
1 parent 9f22530 commit 33b91c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/internal_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,7 @@ func (aw *AggregatedWorker) RegisterWorkflow(w interface{}) {
panic("workflow worker disabled, cannot register workflow")
}
if aw.executionParams.UseBuildIDForVersioning &&
aw.executionParams.DeploymentSeriesName != "" &&
aw.executionParams.DefaultVersioningBehavior == VersioningBehaviorUnspecified {
panic("workflow type does not have a versioning behavior")
}
Expand All @@ -1007,6 +1008,7 @@ func (aw *AggregatedWorker) RegisterWorkflowWithOptions(w interface{}, options R
panic("workflow worker disabled, cannot register workflow")
}
if options.VersioningBehavior == VersioningBehaviorUnspecified &&
aw.executionParams.DeploymentSeriesName != "" &&
aw.executionParams.UseBuildIDForVersioning &&
aw.executionParams.DefaultVersioningBehavior == VersioningBehaviorUnspecified {
panic("workflow type does not have a versioning behavior")
Expand Down

0 comments on commit 33b91c8

Please sign in to comment.