Gautam-Bharadwaj opened a new pull request, #63664:
URL: https://github.com/apache/airflow/pull/63664

   The `timeout_with_traceback` context manager in `airflow.utils.db` uses 
`signal.SIGALRM` to raise a `TimeoutException`.
   
   However, `signal.SIGALRM` does not exist on Windows, causing an 
`AttributeError`. Furthermore, even on Unix, `signal.signal()` can only be 
called from the main thread, raising a `ValueError` inside worker threads. This 
completely breaks logic wrapped in this context in non-standard environments.
   
   This PR adds safe exception handling around the signal initialization. If 
`signal.SIGALRM` fails due to OS constraints or thread context, it logs a 
warning and proceeds gracefully as a no-op timeout, instead of crashing the 
process.
   
   ---
   ##### Was generative AI tooling used to co-author this PR?
   - [ ] Yes


-- 
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