-
Notifications
You must be signed in to change notification settings - Fork 16k
Move out some exceptions to TaskSDK #54505
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
Open
ephraimbuddy
wants to merge
21
commits into
apache:main
Choose a base branch
from
astronomer:exception-separation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+449
−363
Conversation
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
ashb
reviewed
Aug 14, 2025
f4a380e to
7a4587c
Compare
fdff489 to
91d4cc0
Compare
kaxil
reviewed
Aug 19, 2025
airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_run.py
Outdated
Show resolved
Hide resolved
kaxil
reviewed
Aug 19, 2025
airflow-core/src/airflow/api_fastapi/core_api/routes/public/extra_links.py
Outdated
Show resolved
Hide resolved
kaxil
reviewed
Aug 19, 2025
airflow-core/src/airflow/api_fastapi/core_api/routes/public/log.py
Outdated
Show resolved
Hide resolved
kaxil
reviewed
Aug 19, 2025
airflow-core/src/airflow/api_fastapi/execution_api/routes/connections.py
Outdated
Show resolved
Hide resolved
kaxil
reviewed
Aug 19, 2025
1 task
90180cf to
59d7f90
Compare
59d7f90 to
cf9fd0d
Compare
Member
|
@ephraimbuddy Ah, maybe in those shared library tests we should set |
Contributor
Author
The shared modules already set the |
9b5a269 to
0a3d02c
Compare
173a9e9 to
a0ca009
Compare
a0ca009 to
cd033e8
Compare
cd033e8 to
04c0aab
Compare
As part of the ongoing server/client separation, this commit moves out some exceptions to the Task sdk. The AirflowException usage in task sdk has been changed to RuntimeError. Also, the TaskNotFound exception is still duplicated due to the many usages in core API and SDK. Rename back RuntimeError to AirflowException expose TaskNotFound import from exceptions completely separate sdk imports fix conflicts Keep base AirflowException only in sdk import some exception from sdk into core exceptions add to be deprecated function to handle TaskNotFound and ParamValidationError catch some import error in airflow.exceptions and redefine the exceptions Core should not raise exceptions Move some exceptions to deprecated Raise RuntimeError instead of AirflowException in SDK Rename AirflowException in SDK to AirflowSDKException Update tests Remove AirflowNotFound in sdk exceptions Catch import errors for exceptions in example dags remove get_task redefine Import AirflowSensorTimeout properly and Remove airflowNotFoundException import from sdk Remove AirflowFailException in core Import AirflowException from core with a compat shim Fix import Use the sdk AirflowException in core and fix other exceptions raise ValueError in sparkhook
…dulenotfounderror
… the real error would raise
…so that the real error would raise
…flowException to RuntimeError
04c0aab to
27be4bf
Compare
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.
As part of the ongoing server/client separation,
this commit moves out some exceptions to the Task sdk.