mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-06 23:30:29 +00:00
chore(runner): update runner status if start program
This commit is contained in:
1 parent
45b0429b21
commit
d4c1515f4e
6 files changed
+31
-11
No files matched your search
+1
-4
@@ -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++
|
||||
|
||||
Reference in new issue
Block a user