Skip to content

Use cadwyn-core in the Task SDK - #77184

Draft
zmievsa wants to merge 1 commit into
apache:mainfrom
zmievsa:cadwyn-core-imports-only
Draft

zmievsa wants to merge 1 commit into
apache:mainfrom
zmievsa:cadwyn-core-imports-only

Conversation

@zmievsa

@zmievsa zmievsa commented Nov 16, 2026 •

Copy link
Copy Markdown

The Task SDK uses only Cadwyn's versions and migrations, not its routes. Cadwyn 9.1 ships that part as cadwyn-core, without FastAPI or Starlette, so the Task SDK now imports from cadwyn_core. Building the bundle no longer imports FastAPI. The PR is intentionally changing very little to make sure airflow can migrate without much risk.

  • airflow-core moves to cadwyn>=9.1.0rc1 together with the Task SDK's cadwyn-core>=9.1.0rc1, because import cadwyn_core fails next to any older cadwyn version.
  • 9.1.0rc1 is newer than the 4-day exclude-newer window, so the root pyproject.toml gets temporary cutoffs for both packages. Before this is marked ready, the floors move to >=9.1.0. Dropping the cutoffs is tracked in Raise the Cadwyn floors to 9.1.0 and drop the cadwyn cutoffs #77183.
  • No newsfragment: nothing changes for users.

related: #66837


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: Claude Code (Opus 5.5) following the guidelines

The Task SDK only uses Cadwyn's versions and data migrations, which Cadwyn 9.1 ships without FastAPI as cadwyn-core. Depending on it lets the Task SDK drop FastAPI from its own dependencies once it no longer depends on airflow-core. airflow-core's cadwyn floor moves with it because cadwyn_core fails to import next to a different version of cadwyn.

Cadwyn 9.1.0 isn't out yet, so both floors point at 9.1.0rc1. That release came out inside the 4-day exclude-newer window, so cadwyn and cadwyn-core get temporary per-package cutoffs.
@boring-cyborg boring-cyborg Bot added AIP-85: Dag Importer https://cwiki.apache.org/confluence/spaces/AIRFLOW/pages/315494137/AIP-85+DAG+importer area:task-sdk labels Nov 16, 2026
@boring-cyborg

boring-cyborg Bot commented Nov 16, 2026

Copy link
Copy Markdown

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example Dag that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-85: Dag Importer https://cwiki.apache.org/confluence/spaces/AIRFLOW/pages/315494137/AIP-85+DAG+importer area:task-sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant