Fetch latest undone job instead of oldest
What does this MR do?
Changes the undone job fetching so that the latest job is fetched and not the oldest. This makes sure that failing jobs cannot stall the rest of the queue.
Changes to public APIs
n.a.
Author's checklist (required)
-
Intermediate commits compile (use git rebase -i main
if not) -
Newly added code has a style consistent with the rest of the repository -
Newly added code is documented (guidelines)
Related issues
Quick fix for #4, though #4 should be reopened because this fix can lead to race conditions as well (see #4).