1. Обучение
  2. /
  3. Курса
  4. /
  5. Introduction to Apache Airflow in Python

Connected

упражнение

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.

Инструкции

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.