1. Učit se
  2. /
  3. Kurzy
  4. /
  5. Python으로 배우는 Apache Airflow 입문

Connected

Cvičení

Adding retries

You've noticed that one particular Dag is failing often on a task that extracts data from a given source. Frustratingly, running the task a few minutes later seems to remedy the problem. After learning about the retry functionality in Airflow Dags, you decide to implement retries on this task to keep from restarting it manually.

The dag, task, and timedelta are already imported for you.

Pokyny

100 XP
  • Set the extract_data task to retry 3 times before failing.
  • Add a delay of 10 minutes between retries on the extract_data task.