mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 14:59:06 +00:00
36c66303df
* Only attempt to flush queue if the underlying worker pool is not finished (#18593) Backport #18593 There is a possible race whereby a worker pool could be cancelled but yet the underlying queue is not empty. This will lead to flush-all cycling because it cannot empty the pool. * On shutdown of Persistant Channel Queues close datachan and empty Partial Backport #18415 Although we attempt to empty the datachan in queues - due to races we are better off just closing the channel and forcibly emptying it in shutdown. Fix #18618 Signed-off-by: Andrew Thornton <art27@cantab.net> * Move zero workers warning to debug Fix #18617 Signed-off-by: Andrew Thornton <art27@cantab.net> * Update modules/queue/manager.go Co-authored-by: Gusted <williamzijl7@hotmail.com> * Update modules/queue/manager.go Co-authored-by: Gusted <williamzijl7@hotmail.com> Co-authored-by: Gusted <williamzijl7@hotmail.com> |
||
---|---|---|
.. | ||
bytefifo.go | ||
helper.go | ||
manager.go | ||
queue.go | ||
queue_bytefifo.go | ||
queue_channel.go | ||
queue_channel_test.go | ||
queue_disk.go | ||
queue_disk_channel.go | ||
queue_disk_channel_test.go | ||
queue_disk_test.go | ||
queue_redis.go | ||
queue_test.go | ||
queue_wrapped.go | ||
setting.go | ||
unique_queue.go | ||
unique_queue_channel.go | ||
unique_queue_disk.go | ||
unique_queue_disk_channel.go | ||
unique_queue_redis.go | ||
unique_queue_wrapped.go | ||
workerpool.go |