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.