0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-24 20:17:03 +01:00
gitea/modules/queue
zeripath 06b9d553bc
Timeout on flush in testing (#16864)
* Timeout on flush in testing

At the end of each test the queues are flushed. At present there is no limit on the
length of time a flush can take which can lead to long flushes.

However, if the CI task is cancelled we lose the log information as to where the long
flush was taking place.

This PR simply adds a default time limit of 2 minutes - at which point an error will
be produced. This should allow us to more easily find the culprit.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* return better error

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
2021-08-30 00:27:51 -04:00
..
bytefifo.go
helper.go
manager.go Timeout on flush in testing (#16864) 2021-08-30 00:27:51 -04:00
queue_bytefifo.go
queue_channel_test.go
queue_channel.go
queue_disk_channel_test.go
queue_disk_channel.go
queue_disk_test.go
queue_disk.go
queue_redis.go
queue_test.go
queue_wrapped.go
queue.go
setting.go
unique_queue_channel.go
unique_queue_disk_channel.go
unique_queue_disk.go
unique_queue_redis.go
unique_queue_wrapped.go
unique_queue.go
workerpool.go