Fixes an issue where failed jobs re-run repeatedly