-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
DryRun is not optional for patch task instance #34563
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
Hi, Thank you for sharing this. It appears there is a mismatch between the API documentation and the actual behavior of the endpoint, which is resulting in a KeyError for the dry_run variable. Suggested Steps: Temporary Workaround: Code Modification: Example Code Modification: data.get("dry_run", False) Next Steps: I hope this helps and makes your interaction with Airflow’s REST API smoother. Best Regards, |
@f0restron07 Please avoid the answers generated with LLM, if you have a valuable comments, don't hesitate to add them, but copying an LLM answer could have a negative impact on communication with users
This issue is what we call bug report :) |
Summary
According to the REST api docs.
you can patch a task instance state. When you hit the api without sending a
"dry_run" variable, you get a KeyError (This is from a server running version 2.5.3):
The API docs state that dry_run is not required and that it is defaulted to false.
This can be reproduced in
main
with the tests by commenting out line 1699 intest_task_instance_endpoint.py
The text was updated successfully, but these errors were encountered: