Menu

Airflow tasks never time out by default: execution_timeout, dagrun_timeout and Deadline Alerts
📰

Airflow tasks never time out by default: execution_timeout, dagrun_timeout and Deadline Alerts

DEV Community: python·Kam Haripara·about 7 hours ago
#S6FaKRRy
#devtopython#devto#dev#task#airflow
Long article (1542 words) — no AI summary yet.
Reading 0:00
15s threshold

A failed task is the easy case. It turns red, the failure callback fires, and someone gets a message. The harder case is a task that never finishes: a database lock that never clears, an HTTP call with no client timeout, a query waiting on a warehouse queue. Out of the box, Airflow lets that task stay in running indefinitely. No failure, no retry, no callback.

This post walks through the settings that put a ceiling on that, what each one actually does, and what to use now that SLAs are gone in Airflow 3. Everything below is from the Airflow 3 docs (linked at the end of each section).

1. The default: no limit at all

Every operator has an execution_timeout argument. If you don't set it, it is None .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.