debian-forge-composer/pkg/jobqueue
Sanne Raymaekers 0a9cf9b6a7 dbjobqueue: check context errors after trying to dequeue
This fixes a race condition where the context might have been canceled
or timed out in between the preliminary check and trying to dequeue, and
consequently returning the wrong error.

Instead of doing the preliminary check, just check for the context
errors when trying to dequeue.
2022-11-08 07:37:32 -05:00
..
dbjobqueue dbjobqueue: check context errors after trying to dequeue 2022-11-08 07:37:32 -05:00
jobqueue.go worker/server: requeue unresponsive jobs 2022-11-02 15:26:00 +01:00