Skip to content

Commit 43ccc1f

Browse files
committed
fix: pause before leading
Signed-off-by: Tianchu Zhao <[email protected]>
1 parent e138ec7 commit 43ccc1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/workflow-controller/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ func NewRootCommand() *cobra.Command {
147147
Callbacks: leaderelection.LeaderCallbacks{
148148
OnStartedLeading: func(ctx context.Context) {
149149
dummyCancel()
150+
time.Sleep(time.Second)
150151
go wfController.Run(ctx, workflowWorkers, workflowTTLWorkers, podCleanupWorkers, cronWorkflowWorkers)
151152
go wfController.RunMetricsServer(ctx, false)
152153
},

0 commit comments

Comments
 (0)