[Idea] LLM-powered smart retry operator for Airflow 3.x #64334
Replies: 2 comments
-
|
This is a really interesting idea — the limitations of static retries in Airflow are definitely real, and your examples make a lot of sense. I’ve been exploring something similar from a broader AIOps perspective here: In my case, I’ve also been trying a self-learning approach, where the system improves its error classification over time based on past logs and outcomes, instead of relying only on fixed rules. The idea is to combine historical patterns with LLM-based reasoning, so decisions become more accurate as the system sees more failures.
There’s definitely overlap in using logs + LLMs to guide decisions like retries or alerts. I’ve been looking at it not just for retries, but also for things like smarter alerting, failure categorisation, and suggesting next actions. Personally, this feels like a great fit as a provider package rather than core Airflow, since it keeps things optional and flexible, and avoids adding complexity to the core retry mechanism. |
Beta Was this translation helpful? Give feedback.
-
|
Actually @kaxil just opened discussion about more comprehensive solution using our newly added common.ai providers and AIP about it https://lists.apache.org/thread/1n1k7jkm9f47qn5c7jf3xcgb1xhrrqn4 |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Airflow's current retry mechanism is static — it waits the same fixed interval
and retries blindly regardless of the error type. This causes:
Proposed Solution
An operator that uses a local LLM (via Ollama) to analyze the error log and
make an intelligent retry decision:
Implementation
I built a working prototype as a standalone provider package:
👉 https://github.com/ertancelik/airflow-provider-smart-retry
Works with Airflow 3.x and Ollama (local LLM, no API key needed).
Example
Would love to hear community feedback — is this something worth contributing
to the core or as an official provider?
Beta Was this translation helpful? Give feedback.
All reactions