0
0
Apache Airflowdevops~5 mins

SLA misses and notifications in Apache Airflow - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an SLA in Apache Airflow?
SLA stands for Service Level Agreement. In Airflow, it is a time limit set on tasks to finish by a certain deadline.
Click to reveal answer
beginner
What happens when a task misses its SLA in Airflow?
Airflow records the SLA miss and can trigger notifications to alert users about the delay.
Click to reveal answer
intermediate
How do you enable SLA notifications in Airflow?
You set the 'sla_miss_callback' function in your DAG to define what happens when an SLA is missed, like sending an email.
Click to reveal answer
beginner
What is the role of 'sla' parameter in Airflow tasks?
The 'sla' parameter sets a deadline (a datetime.timedelta) for the task to complete. If the task runs longer, it triggers an SLA miss.
Click to reveal answer
intermediate
Can SLA misses trigger automatic retries in Airflow?
No, SLA misses only notify about delays. Retries are controlled separately by the 'retries' and 'retry_delay' parameters.
Click to reveal answer
What does SLA stand for in Airflow?
AScheduled Log Action
BSystem Log Alert
CService Level Agreement
DService Load Average
Which Airflow parameter sets the deadline for a task?
Aexecution_timeout
Bretry_delay
Cstart_date
Dsla
What happens when a task misses its SLA?
AAirflow triggers an SLA miss notification
BThe task automatically retries
CThe DAG stops running
DNothing happens
How do you customize SLA miss notifications?
ABy setting 'sla_miss_callback' in the DAG
BBy changing 'retry_delay'
CBy modifying 'start_date'
DBy setting 'max_active_runs'
Do SLA misses cause task retries automatically?
AYes, always
BNo, retries are separate from SLA misses
COnly if 'sla_retry' is true
DOnly for PythonOperator tasks
Explain how SLA misses work in Airflow and how you can notify users when they happen.
Think about deadlines on tasks and what happens if they are late.
You got /4 concepts.
    Describe the difference between SLA misses and task retries in Airflow.
    Consider what each feature is meant to do.
    You got /4 concepts.