0
0
Apache Airflowdevops~5 mins

Execution date vs logical date in Apache Airflow - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is the start date in Airflow?
The start date is the timestamp when Airflow schedules a task or DAG to start running. It represents the earliest time the task is eligible to run.
Click to reveal answer
beginner
What does the logical date mean in Airflow?
The logical date is the scheduled time for which the task or DAG run is responsible. It represents the data interval or period the run is processing.
Click to reveal answer
intermediate
How do start date and logical date differ in Airflow?
Start date is when the task is scheduled to run, while logical date is the scheduled time the task run represents. Logical date is often earlier than start date.
Click to reveal answer
intermediate
Why is the logical date important in Airflow scheduling?
Logical date helps Airflow know which data period the task run is processing, enabling correct data partitioning and backfilling.
Click to reveal answer
advanced
If a DAG is scheduled daily at midnight, what would be the logical date and start date for the run at 2024-06-02 00:00?
Logical date: 2024-06-01 00:00 (the data day being processed). Start date: 2024-06-02 00:00 (when the task actually runs).
Click to reveal answer
In Airflow, what does the logical date represent?
AThe time the DAG was created
BThe actual time the task starts running
CThe scheduled time the task run is responsible for
DThe time the task finished
Which date is usually earlier in Airflow: start date or logical date?
ALogical date
BDepends on the DAG
CThey are always the same
DStart date
If a DAG runs daily at midnight, what is the logical date for the run at 2024-06-10 00:00?
A2024-06-09 00:00
B2024-06-10 00:00
C2024-06-11 00:00
DThe current system time
Why does Airflow use logical dates instead of just start dates?
ATo log the system time
BTo know when the task finished
CTo schedule the next run
DTo track the data interval the task processes
Which of these is true about start date in Airflow?
AIt is the time the task run is scheduled for
BIt is the time the task actually starts running
CIt is always earlier than logical date
DIt is the time the DAG was last modified
Explain the difference between start date and logical date in Airflow.
Think about when the task runs versus what data it processes.
You got /4 concepts.
    Why is understanding logical date important when scheduling DAGs in Airflow?
    Consider how Airflow knows which data to work on.
    You got /4 concepts.