]> source.dussan.org Git - gitea.git/commit
Only use boost workers for leveldb shadow queues (#15696)
authorzeripath <art27@cantab.net>
Sun, 2 May 2021 07:22:30 +0000 (08:22 +0100)
committerGitHub <noreply@github.com>
Sun, 2 May 2021 07:22:30 +0000 (08:22 +0100)
commit0590176a23c056b274bd30ff7cec8f8a203f0665
tree5dba7449c52a0ec32d03e8f07661e4619bd2ef49
parent6ebd833780c97da7b065ad9d3b49d70d7dcdbbd4
Only use boost workers for leveldb shadow queues (#15696)

* The leveldb shadow queue of a persistable channel queue should always start with 0
workers and just use boost to add additional workers if necessary.

* create a zero boost so that if there are no workers in a pool - boost to start the workers

* actually set timeout appropriately on boosted workers

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/queue/queue_disk_channel.go
modules/queue/unique_queue_disk_channel.go
modules/queue/workerpool.go