How to automatically restart a failed job?