Recall & Review
beginner
What is a Timetable in Apache Airflow?
A Timetable in Airflow defines when and how often a workflow (DAG) should run. It controls the schedule beyond simple cron expressions, allowing complex timing rules.
Click to reveal answer
intermediate
How does a Timetable differ from a cron schedule in Airflow?
A cron schedule is a simple string defining fixed times, while a Timetable is a Python class that can generate complex schedules dynamically, like irregular intervals or event-based triggers.Click to reveal answer
intermediate
Which method must be implemented in a custom Airflow Timetable class?
The method 'next_dagrun_info' must be implemented. It returns the next scheduled run time and optional metadata for the DAG run.
Click to reveal answer
advanced
What is the role of 'logical_date' in Airflow Timetables?
The 'logical_date' represents the scheduled time for a DAG run, not the actual execution time. Timetables use it to calculate the next run time accurately.
Click to reveal answer
advanced
Give an example use case for a custom Timetable in Airflow.
When you need to run a DAG on complex patterns like 'every first Monday of the month' or 'only on business days excluding holidays', a custom Timetable can handle these rules.
Click to reveal answer
What does an Airflow Timetable primarily control?
✗ Incorrect
A Timetable defines the schedule for DAG runs, controlling when and how often they execute.
Which method must a custom Timetable class implement?
✗ Incorrect
The 'next_dagrun_info' method returns the next scheduled run time for the DAG.
What is the 'logical_date' in Airflow scheduling?
✗ Incorrect
Logical date is the scheduled time Airflow uses to identify DAG runs, not the real execution time.
Why use a custom Timetable instead of cron?
✗ Incorrect
Custom Timetables allow defining schedules that cron cannot express, like skipping holidays or irregular intervals.
Which of these is NOT a feature of Airflow Timetables?
✗ Incorrect
Task retry management is handled by task settings, not by Timetables.
Explain what an Airflow Timetable is and why you might create a custom one.
Think about when simple cron is not enough.
You got /3 concepts.
Describe the role of the 'next_dagrun_info' method in a custom Timetable.
This method is key to scheduling logic.
You got /3 concepts.