seanghaeli opened a new pull request, #66558:
URL: https://github.com/apache/airflow/pull/66558

   ## Summary
   
   Set the server process context in the triggerer job runner so that deadline 
callbacks have access to MetastoreBackend and other server-side services.
   
   Without this fix, deadline callbacks running in the triggerer fail because 
`_AIRFLOW_PROCESS_CONTEXT` is not configured, so they can't access the secret 
backend needed for connection/variable resolution.
   
   Rebased version of #64022 (by @Pranaykarvi, approved by @ferruzzi) which was 
blocked by a stale review for 2+ months.
   
   ## Changes
   
   - Wrap triggerer execution in try/finally that sets/restores 
`_AIRFLOW_PROCESS_CONTEXT`
   - Guard `trigger_runner.kill()` against None to prevent AttributeError if 
startup fails
   
   closes: #64022
   
   ---
   
   ##### 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