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

vatsrahul1001 pushed a commit to branch v3-4-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-4-test by this push:
     new 063bdb907cf [v3-4-test] Guard register_at_fork in shared stats for 
Windows compatibility (#73680) (#75464)
063bdb907cf is described below

commit 063bdb907cfbba2f14e4180cc2ce15bbf97ef9e5
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Oct 24 16:09:26 2026 +0530

    [v3-4-test] Guard register_at_fork in shared stats for Windows 
compatibility (#73680) (#75464)
    
    (cherry picked from commit 8143b8d93dcc53e22c75bcb53520e0aaeb6bb3fa)
    
    Co-authored-by: Aditya kumar singh 
<[email protected]>
---
 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