Repository navigation
[v3-4-test] Refuse a HITL response for a request the task has since replaced (#74688) - #74982
Merged
Merged
Conversation
…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
marked this pull request as ready for review
October 18, 2026 09:03
vatsrahul1001
requested review from
bbovenzi,
bugraoz93,
choo121600,
dheerajturaga,
ephraimbuddy,
guan404ming,
henry3260,
jason810496,
pierrejeambrun,
potiuk,
rawwar,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
October 18, 2026 09:03
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
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]>
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
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.
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]