]> source.dussan.org Git - gitea.git/commit
Restart zero worker if there is still work to do (#18658) (#18672)
authorzeripath <art27@cantab.net>
Tue, 8 Feb 2022 21:28:21 +0000 (21:28 +0000)
committerGitHub <noreply@github.com>
Tue, 8 Feb 2022 21:28:21 +0000 (23:28 +0200)
commit38fc6c75f3023215cbf7092452d72eb60663bc46
tree5bdb749ee7cc9d29df87e4b7f829d926c98aaa53
parent8671602ba9eb76190a401d969451908f76eef835
Restart zero worker if there is still work to do (#18658) (#18672)

* Restart zero worker if there is still work to do (#18658)

Backport #18658

It is possible for the zero worker to timeout before all the work is finished.
This may mean that work may take a long time to complete because a worker will only
be induced on repushing.

Also ensure that requested count is reset after pulls and push mirror sync requests and add some more trace logging to the queue push.

Fix #18607

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update modules/queue/workerpool.go
modules/queue/workerpool.go
services/mirror/mirror.go