Part of lp.services.job
A circular chain of fallback queues could keep a job forever queued if it times out in all queues.
Doing this in a function is convenient for testing.