You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/09 14:32:52 UTC

[GitHub] [airflow] josh-fell commented on pull request #21446: Remove invalid arg from snippet in TaskFlow tutorial doc

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org