cs: return error if starting periodic tasks fails
Exit the process if `StartTasks` returns an error.
Closes
GitOrigin-RevId:
@@ -588,7 +588,7 @@ func realMain(ctx context.Context) error {
AllowIsdLoop: isdLoopAllowed,
})
if err != nil {
- serrors.WrapStr("starting periodic tasks", err)
+ return serrors.WrapStr("starting periodic tasks", err)
}
defer tasks.Kill()
log.Info("Started periodic tasks")
