Rerun a cron job, if it fails, for a specified number of times.

A cron job that fails stays queued until max_fails is reached.