rerun a cron job, if it fails, for max_fails times.
reset fails after succesful run