-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Implement slice on LazyXComSequence #50117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ef91af5
to
6694e1a
Compare
6694e1a
to
234e828
Compare
87d2547
to
7c366e1
Compare
7c366e1
to
509670c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, few comments
airflow-core/src/airflow/api_fastapi/execution_api/routes/xcoms.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/execution_api/routes/xcoms.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/execution_api/versions/v2025_05_21.py
Outdated
Show resolved
Hide resolved
airflow-core/tests/unit/api_fastapi/execution_api/versions/head/test_xcoms.py
Show resolved
Hide resolved
509670c
to
7493e1f
Compare
airflow-core/src/airflow/api_fastapi/execution_api/versions/v2025_05_21.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/execution_api/versions/v2025_05_21.py
Outdated
Show resolved
Hide resolved
7493e1f
to
0154964
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the code, we will not need the cadywn migration anymore if we plan to keep the old API as-is.
This is because:
- older client <=> new server will work as old API still works (no changes made there)
- newer client <=> new server will work as it will use new API
- newer client <=> old server is not a case we should be too worried about as its about forward compat, which is not of paramount importance as of now. We need to figure out task sdk, airflow core versioning even before that.
@uranusjr i think you can safely remove the cadwyn migration in this case.
airflow-core/tests/unit/api_fastapi/execution_api/versions/head/test_xcoms.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 comment needs addressing, rest lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending kaxil's comments and a simple test with old client, new server
d06ac9b
to
c4418de
Compare
c4418de
to
e87b4be
Compare
I decided to split index and slice access to their separate endpoints, instead of reusing the GetXCom endpoint. This duplicates code a bit, but the input parameters are now a lot easier to reason with. It's unfortunate FastAPI does not natively allow unions on Query(), or this could be implemented a lot nicer.
e87b4be
to
84b36c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep this is good! Thanks!
(cherry picked from commit f8abdcd)
(cherry picked from commit f8abdcd)
Following up #50011 (comment)
I decided to split index and slice access to their separate endpoints, instead of reusing the GetXCom endpoint. This duplicates code a bit, but the input parameters are now a lot easier to reason with. It's unfortunate FastAPI does not natively allow unions on Query(), or this could be implemented a lot nicer.