josh-fell commented on pull request #21446:
URL: https://github.com/apache/airflow/pull/21446#issuecomment-1033823945


   > This arg _isn't_ invalid -- It's the rough equivalent of 
`PythonOperator(max_retries=2, python_callable=x)`
   
   Passing that specific arg causes DAG parsing errors. For example, given this 
DAG:
   ```python
   @task(max_retries=3)
   def get_stuff(ti=None):
       print(vars(ti))
   
   
   @dag(start_date=datetime(2022, 1, 1), schedule_interval=None)
   def test_stuff():
       get_stuff()
   
   
   dag = test_stuff()
   ```
   You get this error:
   
![image](https://user-images.githubusercontent.com/48934154/153221849-a7ae3172-a433-4611-94d6-84291933e084.png)
   


-- 
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]


Reply via email to