Skip to content

Commit

Permalink
fix: cronjob won't work for a new instance (#7119) (#7120)
Browse files Browse the repository at this point in the history
Co-authored-by: Klesh Wong <zhenmian.huang@merico.dev>
  • Loading branch information
github-actions[bot] and klesh authored Mar 6, 2024
1 parent 58128d8 commit 0a4c9b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/server/services/blueprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,7 @@ func ReloadBlueprints() (err errors.Error) {
return err
}
}
if len(blueprints) > 0 {
cronManager.Start()
}
cronManager.Start()
logger.Info("total %d blueprints were scheduled", len(blueprints))
return nil
}
Expand Down

0 comments on commit 0a4c9b4

Please sign in to comment.