increment_retry: Increment retry count
This is a method of the Task class in the task module.
def increment_retry(&mut self) -> ()