From 33b91c8d7c040ad8de52b88d05b9c88bf4fad1c2 Mon Sep 17 00:00:00 2001 From: Antonio Lain Date: Tue, 3 Dec 2024 14:55:57 -0800 Subject: [PATCH] Exclude versioning-2 from panic --- internal/internal_worker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/internal_worker.go b/internal/internal_worker.go index 373630244..36ce95ada 100644 --- a/internal/internal_worker.go +++ b/internal/internal_worker.go @@ -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") } @@ -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")