Skip to content

Conversation

@uranusjr
Copy link
Member

@uranusjr uranusjr commented Dec 24, 2025

This follows mainly the Timetable Treatment™️ (patent pending) i.e. allow stub values to be stored in SDK constructs and delay validation to during dag processing, but ALSO allow custom subclasses to be seamlessly serialized and decoded.

Users CAN use PriorityWeightStrategy subclasses with SDK types if they want to. The SDK classes simply store them. After validation in the dag processor, protected processes will only see PriorityWeightStrategy objects.

See #52141 (although this ends up being actually more the other way around, removing Core references in SDK).

This follows mainly the Timetable Treatment (tm) (patent pending) i.e.
allow stub values to be stored in SDK constructs and delay validation to
during dag processing, but ALSO allow custom subclasses to be seamlessly
serialized and decoded.

Users CAN use PriorityWeightStrategy subclasses with SDK types if they
want to. The SDK classes simply store them. After validation in the dag
processor, protected processes will only see PriorityWeightStrategy
objects.
We'll need to figure a lot of things out in CLI down the road...
@uranusjr uranusjr merged commit 60b4ed4 into apache:main Dec 26, 2025
104 checks passed
@uranusjr uranusjr deleted the sdk-weight-rule branch December 26, 2025 08:57
@jscheffl
Copy link
Contributor

Have a suspect that this PR broke canary tests in https://github.com/apache/airflow/actions/runs/20523379840 - somebody able to check?

@jscheffl
Copy link
Contributor

Fix attempt: #59826

jscheffl added a commit that referenced this pull request Dec 26, 2025
jscheffl added a commit that referenced this pull request Dec 26, 2025
* Revert "Remove PriorityWeightStrategy reference in SDK (#59780)"

This reverts commit 60b4ed4.

* Tip by TP
Dev-iL pushed a commit to Dev-iL/airflow that referenced this pull request Dec 28, 2025
amoghrajesh pushed a commit to astronomer/airflow that referenced this pull request Dec 29, 2025
amoghrajesh pushed a commit to astronomer/airflow that referenced this pull request Dec 29, 2025
* Revert "Remove PriorityWeightStrategy reference in SDK (apache#59780)"

This reverts commit 60b4ed4.

* Tip by TP
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Jan 2, 2026
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Jan 2, 2026
* Revert "Remove PriorityWeightStrategy reference in SDK (apache#59780)"

This reverts commit 60b4ed4.

* Tip by TP
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
* Revert "Remove PriorityWeightStrategy reference in SDK (apache#59780)"

This reverts commit 60b4ed4.

* Tip by TP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants