1. Learn
  2. /
  3. คอร์ส
  4. /
  5. Introduction to Apache Airflow in Python

Connected

แบบฝึกหัด

Decorating a task

You've decided to implement a specific Airflow task using Python. This task needs to download and save a file to the system within Airflow, using the pull_file function. This function is already defined for you.

The requests library is imported for you, as is the Airflow dag object.

คำแนะนำ

100 XP
  • Import the necessary object from the Airflow library.
  • Configure the pull_file function to be an Airflow task.
  • Call the task object.