chore(runner): add new register command

Signed-off-by: Bo-Yi.Wu <[email protected]>
This commit is contained in:
Bo-Yi.Wu authored and Jason Song committed 2022-11-24 15:37:36 +08:00
1 parent cce60d466b
commit a503f7429f
9 files changed
+128 -42

No files matched your search

-5
View File
@@ -94,11 +94,6 @@ func runDaemon(ctx context.Context, task *runtime.Task) func(cmd *cobra.Command,
WithField("arch", cfg.Platform.Arch).
Infoln("polling the remote server")
// register new runner
if err := poller.Register(ctx, cfg.Runner); err != nil {
return err
}
// update runner status to idle
log.Infoln("update runner status to idle")
if _, err := cli.UpdateRunner(