PriorityJobQueue: retry waiting for promises to prevent deadlocks.