Add Task.required_attrs and RetryTask