debian-forge-composer/internal/jobqueue/fsjobqueue
Ondřej Budai 5f4db72777 fsjobqueue: do not delete empty channels
Previously, we deleted empty channels when a job was dequeued. This is
completely wrong because there still might be some clients waiting for
a job. This commit removes the cleanup and adds a regression test.

Note that this has the potential to leak memory if we ever use a lot of
job types. Currently, we have just handful of them, so this is fine.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2021-11-14 10:17:03 +01:00
..
fsjobqueue.go fsjobqueue: do not delete empty channels 2021-11-14 10:17:03 +01:00
fsjobqueue_test.go jobqueue: move fsjobqueue's generic tests into new package 2021-07-28 21:52:31 +01:00