fix: ignore stuck because of wrong token

This commit is contained in:
Jason Song 2022-11-15 13:38:25 +08:00
parent 9830f34d36
commit 88ae188699
1 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,9 @@ func runDaemon(ctx context.Context, envFile string) func(cmd *cobra.Command, arg
Status: runnerv1.RunnerStatus_RUNNER_STATUS_IDLE,
}),
); err != nil {
return err
// go on, if return err, the program will be stuck
log.WithError(err).
Errorln("failed to update runner")
}
return poller.Poll(ctx, cfg.Runner.Capacity)