hankehly commented on code in PR #25845: URL: https://github.com/apache/airflow/pull/25845#discussion_r953259832
########## docs/apache-airflow/upgrading-from-1-10/index.rst: ########## @@ -924,6 +929,23 @@ instead. On top of that, a new dag.callback_exceptions counter metric has been added to help better monitor callback exceptions. +Migrating to TaskFlow API +^^^^^^^^^^^^^^^^^^^^^^^^^ + +Airflow 2.0 introduced the TaskFlow API to simplify the declaration of Python callable tasks. +Users are encouraged to replace classic operators with their TaskFlow decorator alternatives. +For details, see :doc:`/tutorial_taskflow_api`. + +============================= ============================================ +Classic Operator TaskFlow Decorator +============================= ============================================ +``PythonOperator`` ``@task`` (short for ``@task.python``) +``PythonVirtualenvOperator`` ``@task.virtualenv`` +``BranchPythonOperator`` ``@task.branch`` +``DockerOperator`` ``@task.docker`` +============================= ============================================ Review Comment: Thanks, let's add that in -- 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]
