mirror of
https://gitea.com/gitea/act_runner.git
synced 2025-02-06 09:54:48 +01:00
zero
This commit is contained in:
parent
7cd926e32d
commit
5beaa5622a
@ -103,7 +103,7 @@ func (p *Poller) fetchTask(ctx context.Context) (*runnerv1.Task, bool) {
|
||||
}
|
||||
|
||||
// got a task, set `tasksVersion` to zero to focre query db in next request.
|
||||
p.tasksVersion.Store(resp.Msg.TasksVersion)
|
||||
p.tasksVersion.Store(0)
|
||||
|
||||
return resp.Msg.Task, true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user