Shoryamishra61 commented on PR #74577:
URL: https://github.com/apache/airflow/pull/74577#issuecomment-7022460969

   Thanks @kacpermuda for the thorough review. The branch has been rebased onto 
current `main` and all review feedback has been addressed:
   
   1. **Start-up fail-closed & hook ordering:** Marked `on_starting` with 
`@hookimpl(tryfirst=True)`. The listener now fails closed: 
`ProcessPoolExecutor` is strictly used only when the component is explicitly 
verified as a scheduler `Job` (`job_type == "SchedulerJob"`). All other 
components default safely to `ThreadPoolExecutor`. Removed the redundant 
`_AIRFLOW_COMPONENT` environment variable.
   2. **Task-SDK & Airflow 2.11 compatibility:** Replaced direct `FastAPI` 
imports with `sys.modules.get("fastapi")` lazy checks to avoid 
`ModuleNotFoundError` on environments without FastAPI installed.
   3. **Fork safety:** Moved `os.register_at_fork(after_in_child=...)` to 
module level against `get_openlineage_listener()`, preventing hook accumulation 
across listener instantiations.
   4. **Shutdown & cancellation telemetry:** Added logging for the count of 
cancelled pending events on shutdown, corrected the worker thread exit log 
warning, and added a `_stopped` guard to prevent recreation of executors after 
shutdown.
   5. **Scope cleanup:** Removed `api_server_max_pending_events` and the 
semaphore; bounded queue mechanisms will be addressed in a separate, dedicated 
PR.
   6. **Documentation & newsfragment:** Added 
`airflow-core/newsfragments/74577.significant.rst` and unified test fixtures.


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