This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/modules/queue
zeripath 382101ecc7
In disk_channel queues synchronously push to disk on shutdown (#18415) (#18788)
Partial Backport of #18415

Instead of using an asynchronous goroutine to push to disk on shutdown
just close the datachan and immediately push to the disk.

Prevents messages of incompletely flushed queues.

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

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-02-22 20:08:35 +08:00
..
bytefifo.go
helper.go
manager.go Only attempt to flush queue if the underlying worker pool is not finished (#18593) (#18620) 2022-02-06 14:55:44 +08:00
queue.go
queue_bytefifo.go In disk_channel queues synchronously push to disk on shutdown (#18415) (#18788) 2022-02-22 20:08:35 +08:00
queue_channel.go
queue_channel_test.go
queue_disk.go
queue_disk_channel.go In disk_channel queues synchronously push to disk on shutdown (#18415) (#18788) 2022-02-22 20:08:35 +08:00
queue_disk_channel_test.go In disk_channel queues synchronously push to disk on shutdown (#18415) (#18788) 2022-02-22 20:08:35 +08:00
queue_disk_test.go A better go code formatter, and now `make fmt` can run in Windows (#17684) 2021-11-17 20:34:35 +08:00
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 In disk_channel queues synchronously push to disk on shutdown (#18415) (#18788) 2022-02-22 20:08:35 +08:00
unique_queue_redis.go
unique_queue_wrapped.go
workerpool.go Restart zero worker if there is still work to do (#18658) (#18672) 2022-02-08 23:28:21 +02:00