Update TaskFlow API example to use `@dag` decorator
See original GitHub issueDescription
Update https://github.com/apache/airflow/blob/master/airflow/example_dags/tutorial_taskflow_api_etl.py tp use @dag decorator instead of leveraging context manager to make it more TaskFlow-y.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Working with TaskFlow — Airflow Documentation
Here is a very simple pipeline using the TaskFlow API paradigm. ... import json import pendulum from airflow.decorators import dag, task @dag( schedule=None ......
Read more >Introduction to Airflow decorators | Astronomer Documentation
Airflow decorators were introduced as part of the TaskFlow API, which also handles passing data between tasks using XCom and inferring task dependencies ......
Read more >TaskFlow API in Airflow 2.0 - YouTube
Airflow 2.0 brought with it many great new features, one of which is the TaskFlow API. The TaskFlow API makes DAGs easier to...
Read more >Writing Functional DAGs with Decorators - YouTube
Decorators, originally introduced as part of the TaskFlow API, provide an easy way of turning your functions into Airflow tasks.
Read more >A simple DAG using Airflow 2.0 - Pedro Madruga
Airflow 2.x is a game-changer, especially regarding its simplified syntax using the new Taskflow API. In this tutorial, we're building a DAG ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@kaxil I would encourage all TaskFlow tutorials to be using
@dagbetter? We can leave some w context manager so people undertstand it’s usable in both ways. But I was indeed refering totutorial_taskflow_api_etlas @eflann mentionsThis is documentation update. I would think it can be even done after release of 2.0 (aka 2.0.1?)