SamWheating edited a comment on issue #22381: URL: https://github.com/apache/airflow/issues/22381#issuecomment-1074587165
I think that this was introduced in https://github.com/apache/airflow/pull/21018, so its only included in 2.2.4: Specifically this addition of this line to the TaskInstance constructor: https://github.com/apache/airflow/blob/d6031f97ab9fd2666cfbcf5a851b26e2ceb010c6/airflow/models/taskinstance.py#L484 As well as the removal of the `max_tries` field from `refresh_from_task`, which means the the max_tries field is only set based on the DB value, which refers to the task_instance max_retries. It looks like the only operators which use an argument called `max_tries` are the AthenaOperator. I think that the easiest way to fix this would be to just rename the `max_tries` parameter on those operators (and start the deprecation of the `max_tries` parameter). Thoughts? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
