Skip to content

Commit

Permalink
fix: Mutex is not initialized when controller restart (#9873)
Browse files Browse the repository at this point in the history
Signed-off-by: Saravanan Balasubramanian <[email protected]>
  • Loading branch information
sarabala1979 committed Oct 23, 2022
1 parent 7bdd332 commit 6b08636
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workflow/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,12 @@ func (wfc *WorkflowController) initManagers(ctx context.Context) error {
return err
}

wfc.syncManager.Initialize(wfList.Items)

if err := wfc.throttler.Init(wfList.Items); err != nil {
return err
}

wfc.syncManager.Initialize(wfList.Items)
return nil
}

Expand Down

0 comments on commit 6b08636

Please sign in to comment.