chore(runner): update runner status if start program

This commit is contained in:
Bo-Yi Wu authored and Jason Song committed 2022-11-24 15:37:32 +08:00
1 parent 45b0429b21
commit d4c1515f4e
6 files changed
+31 -11

No files matched your search

+1 -4
View File
@@ -126,10 +126,7 @@ func (p *Poller) poll(ctx context.Context, thread int) error {
// request a new build stage for execution from the central
// build server.
resp, err := p.Client.FetchTask(ctx, connect.NewRequest(&runnerv1.FetchTaskRequest{
Os: p.Filter.OS,
Arch: p.Filter.Arch,
}))
resp, err := p.Client.FetchTask(ctx, connect.NewRequest(&runnerv1.FetchTaskRequest{}))
if err == context.Canceled || err == context.DeadlineExceeded {
l.WithError(err).Trace("poller: no stage returned")
p.errorRetryCounter++