gitea/services/mirror
zeripath 38fc6c75f3
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
2022-02-08 23:28:21 +02:00
..
mirror.go Restart zero worker if there is still work to do (#18658) (#18672) 2022-02-08 23:28:21 +02:00
mirror_pull.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
mirror_push.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00