sort of handle failed jobs through requeueing the pending jobs