Fix SecretCache import failure on Python 3.14 multiprocessing#64501
Merged
potiuk merged 1 commit intoapache:mainfrom Mar 30, 2026
Merged
Fix SecretCache import failure on Python 3.14 multiprocessing#64501potiuk merged 1 commit intoapache:mainfrom
potiuk merged 1 commit intoapache:mainfrom
Conversation
The `conf` object in `airflow.sdk.configuration` is lazily initialized via `__getattr__`. Importing it at module level in `cache.py` causes `ImportError` when the module is deserialized in a multiprocessing child process on Python 3.14. Moving the import into `SecretCache.init()` where it's actually used avoids this issue.
bugraoz93
approved these changes
Mar 30, 2026
eladkal
approved these changes
Mar 30, 2026
potiuk
added a commit
that referenced
this pull request
Mar 31, 2026
…sing (#64501) The `conf` object in `airflow.sdk.configuration` is lazily initialized via `__getattr__`. Importing it at module level in `cache.py` causes `ImportError` when the module is deserialized in a multiprocessing child process on Python 3.14. Moving the import into `SecretCache.init()` where it's actually used avoids this issue. (cherry picked from commit 7438cbf) Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
1 task
jason810496
pushed a commit
that referenced
this pull request
Mar 31, 2026
…sing (#64501) (#64515) The `conf` object in `airflow.sdk.configuration` is lazily initialized via `__getattr__`. Importing it at module level in `cache.py` causes `ImportError` when the module is deserialized in a multiprocessing child process on Python 3.14. Moving the import into `SecretCache.init()` where it's actually used avoids this issue. (cherry picked from commit 7438cbf)
1 task
Subham-KRLX
pushed a commit
to Subham-KRLX/airflow
that referenced
this pull request
Apr 3, 2026
…#64501) The `conf` object in `airflow.sdk.configuration` is lazily initialized via `__getattr__`. Importing it at module level in `cache.py` causes `ImportError` when the module is deserialized in a multiprocessing child process on Python 3.14. Moving the import into `SecretCache.init()` where it's actually used avoids this issue.
Suraj-kumar00
pushed a commit
to Suraj-kumar00/airflow
that referenced
this pull request
Apr 7, 2026
…#64501) The `conf` object in `airflow.sdk.configuration` is lazily initialized via `__getattr__`. Importing it at module level in `cache.py` causes `ImportError` when the module is deserialized in a multiprocessing child process on Python 3.14. Moving the import into `SecretCache.init()` where it's actually used avoids this issue.
vatsrahul1001
pushed a commit
that referenced
this pull request
Apr 8, 2026
…sing (#64501) (#64515) The `conf` object in `airflow.sdk.configuration` is lazily initialized via `__getattr__`. Importing it at module level in `cache.py` causes `ImportError` when the module is deserialized in a multiprocessing child process on Python 3.14. Moving the import into `SecretCache.init()` where it's actually used avoids this issue. (cherry picked from commit 7438cbf)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
confobject inairflow.sdk.configurationis lazily initialized via__getattr__. Importing it at module level incache.pycausesImportErrorwhen the module is deserialized in a multiprocessing child process on Python 3.14. Moving the import intoSecretCache.init()where it's actually used avoids this issue.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Claude Opus 4.6) following the guidelines