MDL-22502: Change the task rescheduler to schedule retries for failed jobs.

Failed tasks will be rescheduled initially 1 minute later, then 2 minutes, then 4 minutes etc.
The longest a task will have to wait after being rescheduled for failing is 24 hours.