Added retry for failed jobs