Limit requeues for task on failures, not attempts

This way, a failed task that is being manually rerun will have its full
number of possible requeues again.
Merge pull request #284 from guidow/limit_requeues_on_failures

Limit requeues for task on failures, not attempts