Sathvik-Chowdary-Veerapaneni opened a new pull request, #63692:
URL: https://github.com/apache/airflow/pull/63692

   Fixed DAG-level `on_failure_callback` never firing with KubernetesExecutor.
   
   The `DagRunContext` validator only caught `DetachedInstanceError` when 
accessing ORM relationships, but other SQLAlchemy exceptions (e.g. 
`InvalidRequestError`) crashed `produce_dag_callback` silently — no callback 
was produced and no log was emitted.
   
   - Broadened exception handling in `DagRunContext` validator to catch all 
exceptions
   - Made `produce_dag_callback` resilient: sends callback with minimal context 
on `DagRunContext` failure instead of losing it entirely
   - Added warning log when DAG processor skips callbacks with mismatched 
`bundle_name`
   - Added info log when scheduler sends a callback to the DAG processor
   
   closes: #63374
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.6)
   
   Generated-by: Claude Code (Opus 4.6) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to