The GitHub Actions job "Tests (AMD)" on airflow.git/backport-85aa9b6-v3-3-test 
has succeeded.
Run started by GitHub user jason810496 (triggered by jason810496).

Head commit for run:
b834eae331a54e5eba40b38b3370237b3299b6e9 / Jason(Zhe-You) Liu 
<[email protected]>
[v3-3-test] Defer Cadwyn import to keep FastAPI off the Task SDK worker path 
(#69016)

The Task SDK supervisor imports the execution-time schema package on every
worker, and that package imported cadwyn at module load. cadwyn pulls in
FastAPI, Starlette and Jinja2, which are only needed on the foreign-language-SDK
schema-migration path and never for a pure-Python worker. Because the supervisor
is imported lazily after the Celery prefork, each pool worker paid this import
in private (non copy-on-write) pages, raising worker memory on Python 3.14.

Defer the cadwyn import behind a cached bundle accessor and into 
_versioned_class
so importing the schema package no longer loads FastAPI. The foreign-SDK path is
unchanged; a regression test asserts the worker import graph stays cadwyn-free.
(cherry picked from commit 85aa9b6)

Co-authored-by: Jason(Zhe-You) Liu 
<[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/28233576531

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to