Skip to content

Observability: Guard register_at_fork in shared stats for Windows compatibility - #73680

Merged
potiuk merged 1 commit into
apache:mainfrom
Adityakk9031:windows-compat-stats-fork
Oct 18, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
Adityakk9031:windows-compat-stats-fork

Conversation

@Adityakk9031

Copy link
Copy Markdown
Contributor

Close: #69464 (follow-up)

os.register_at_fork is a POSIX-only feature and does not exist on Windows. When importing shared observability metrics on Windows environments, an AttributeError is raised.

This PR guards the os.register_at_fork call with hasattr(os, "register_at_fork") in shared/observability/.../stats.py.

Split from #70946 per maintainer review.

@potiuk
potiuk merged commit 8143b8d into apache:main Oct 18, 2026
77 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-4-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-4-test PR Link

vatsrahul1001 pushed a commit that referenced this pull request Oct 24, 2026
…ibility (#73680) (#75464)

(cherry picked from commit 8143b8d)

Co-authored-by: Aditya kumar singh <143548997+Adityakk9031@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sentry before_send/transport dotted-path config never resolved to a callable in Task SDK (silently drops all events)

2 participants