Skip to content

Migrate rendered map index updates to an async DB session - #77658

Open
nhuantho wants to merge 1 commit into
apache:mainfrom
nhuantho:refactor/async-ti-patch-rendered-map-index
Open

nhuantho wants to merge 1 commit into
apache:mainfrom
nhuantho:refactor/async-ti-patch-rendered-map-index

Conversation

@nhuantho

Copy link
Copy Markdown
Contributor

How:

  • Migrate PATCH /task-instances/{task_instance_id}/rendered-map-index to Airflow's existing AsyncSessionDep and await the UUID-scoped update. The route retains its SQL statement, HTTP contract, authorization, and function-scoped commit and rollback behavior.

  • Extend the success test to check for synchronous SQL on the event loop. Add a regression test that forces the async commit to fail and verifies that the client receives HTTP 500 and the stored label is preserved.

Was generative AI tooling used to co-author this PR?
  • Yes — Codex (GPT-6.2 Sol)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:task-sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant