chore(runner): update runner status if start program

This commit is contained in:
Bo-Yi Wu
2022-10-14 10:06:52 +08:00
committed by Jason Song
parent 45b0429b21
commit d4c1515f4e
6 changed files with 31 additions and 11 deletions

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++