This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 8143b8d93dc Guard register_at_fork in shared stats for Windows 
compatibility (#73680)
8143b8d93dc is described below

commit 8143b8d93dcc53e22c75bcb53520e0aaeb6bb3fa
Author: Aditya kumar singh <[email protected]>
AuthorDate: Mon Oct 19 02:06:18 2026 +0530

    Guard register_at_fork in shared stats for Windows compatibility (#73680)
---
 shared/observability/src/airflow_shared/observability/metrics/stats.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/shared/observability/src/airflow_shared/observability/metrics/stats.py 
b/shared/observability/src/airflow_shared/observability/metrics/stats.py
index e083f340dc1..9a06d6e19bd 100644
--- a/shared/observability/src/airflow_shared/observability/metrics/stats.py
+++ b/shared/observability/src/airflow_shared/observability/metrics/stats.py
@@ -67,7 +67,8 @@ def _reset_backend_after_fork() -> None:
     _backend = None
 
 
-os.register_at_fork(after_in_child=_reset_backend_after_fork)
+if hasattr(os, "register_at_fork"):
+    os.register_at_fork(after_in_child=_reset_backend_after_fork)
 
 
 def normalize_name_for_stats(name: str, log_warning: bool = True) -> str:

Reply via email to