Skip to content

[v3-4-test] Refuse a HITL response for a request the task has since replaced (#74688) - #74982

Merged
vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-3cf3f4b-v3-4-test
Oct 18, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-3cf3f4b-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

A task can ask for a human response again in one Dag run: after a
retry or clear, or an operator that pauses more than once, such as
common.ai's per-tool approval. Since #73235 the repeat request replaces
the subject, body and options and clears the earlier answer, but the
response endpoint still accepts any answer for the task instance. A
reviewer with the earlier request's form still open could approve the
new request while reading the old one.

The response payload takes an optional request_created_at, the
created_at of the request the client loaded. When it no longer matches
the waiting request, the endpoint returns 409. The Required Actions
form sends it; API callers that leave it out answer whatever request
is waiting, as before.
(cherry picked from commit 3cf3f4b)

Co-authored-by: Kaxil Naik [email protected]

…eplaced (#74688)

A task can ask for a human response again in one Dag run: after a
retry or clear, or an operator that pauses more than once, such as
common.ai's per-tool approval. Since #73235 the repeat request replaces
the subject, body and options and clears the earlier answer, but the
response endpoint still accepts any answer for the task instance. A
reviewer with the earlier request's form still open could approve the
new request while reading the old one.

The response payload takes an optional request_created_at, the
created_at of the request the client loaded. When it no longer matches
the waiting request, the endpoint returns 409. The Required Actions
form sends it; API callers that leave it out answer whatever request
is waiting, as before.
(cherry picked from commit 3cf3f4b)

Co-authored-by: Kaxil Naik <[email protected]>
@vatsrahul1001

Copy link
Copy Markdown
Contributor

OL compat 3.4.0 failure is expected and safe to merge past — that image/package isn't published until GA, so the 3.4.0 cell fails during beta/RC while all older versions pass. #74997 fixes it by skipping the unreleased current version from the matrix.

@vatsrahul1001
vatsrahul1001 merged commit a248abe into v3-4-test Oct 18, 2026
267 of 282 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-3cf3f4b-v3-4-test branch October 18, 2026 11:45
vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
…eplaced (#74688) (#74982)

A task can ask for a human response again in one Dag run: after a
retry or clear, or an operator that pauses more than once, such as
common.ai's per-tool approval. Since #73235 the repeat request replaces
the subject, body and options and clears the earlier answer, but the
response endpoint still accepts any answer for the task instance. A
reviewer with the earlier request's form still open could approve the
new request while reading the old one.

The response payload takes an optional request_created_at, the
created_at of the request the client loaded. When it no longer matches
the waiting request, the endpoint returns 409. The Required Actions
form sends it; API callers that leave it out answer whatever request
is waiting, as before.
(cherry picked from commit 3cf3f4b)

Co-authored-by: Kaxil Naik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:airflow-ctl area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants