-
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
Migrate public endpoint Patch Task Instance to FastAPI #44223
base: main
Are you sure you want to change the base?
Conversation
All checks passed, PR is ready for review ✅ |
@pierrejeambrun I'm adding the Set Task Instance Note functionality to this (Patch Task Instance) API as you mentioned here. Will update this PR in a while. |
addcfe1
to
f6c3f24
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.
I think we need to include the update_mask
as we do for other patch endpoints. (The state part would actually be the set_task_instance_state
of your other PR)
@pierrejeambrun I've added Yes got it, sure, I've closed the other Set Task Instance State PR #44246. |
for field in fields_to_update: | ||
if field == "new_state": | ||
if not body.dry_run: | ||
tis: list[TI] = dag.set_task_instance_state( |
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.
Are these to be included for updation as well? Let me know if required I'll add these too.
upstream=body.include_upstream,
downstream=body.include_downstream,
future=body.include_future,
past=body.include_past,
...
3cb7311
to
7737a0a
Compare
closes: #43753, #43754 and #43752
related: #42370
This migrates the Patch Task Instance API from
api_connexion
toapi_fastapi
.