Metadata-Version: 2.4
Name: airflow-provider-smart-retry
Version: 0.1.0
Summary: Airflow provider for LLM-powered intelligent task retry
Project-URL: Homepage, https://github.com/yourusername/airflow-provider-smart-retry
Project-URL: Repository, https://github.com/yourusername/airflow-provider-smart-retry
License: Apache-2.0
Keywords: airflow,llm,ollama,operator,retry
Classifier: Framework :: Apache Airflow
Classifier: Framework :: Apache Airflow :: Provider
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: apache-airflow>=3.0.0
Requires-Dist: requests>=2.28.0
Description-Content-Type: text/markdown

\# airflow-provider-smart-retry



An Apache Airflow provider that uses LLMs to make intelligent retry decisions when tasks fail.



\## The Problem



Airflow's built-in retry mechanism is static — it waits the same amount of time and retries blindly regardless of the error type. This leads to:

\- Rate limit errors being retried too fast

\- Auth errors being retried pointlessly

\- Network errors not being retried fast enough



\## The Solution



`LLMSmartRetryOperator` analyzes the error log using a local LLM (via Ollama) and decides:

\- \*\*Should we retry at all?\*\* (auth errors → no)

\- \*\*How long should we wait?\*\* (rate limits → 60s, network → 0s)

\- \*\*What type of error is this?\*\* (rate\_limit / network / auth / data\_schema / unknown)



\## How It Works

