Repository navigation
docs(orchestration-v2): task_cancel describes queued-only tasks and when it rejects #26133
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
Changes from all commits
4e0df05
c5b42a9
32dd2c6
ff00d36
dc8490c
87ae413
316f407
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -328,11 +328,19 @@ the published task result. | |
| ### `task_cancel` | ||
|
|
||
| Stops the child thread with the internal `thread.stop` command, then stops every | ||
| task the child delegated, and disposes automatic parent delivery. Like a user Stop, | ||
| `thread.stop` interrupts the running turn, holds queued turns, and ends pull request | ||
| watches. A nonterminal task with no interruptible run is rejected. A terminal task | ||
| returns its existing status, and its child thread still stops, including later | ||
| runs and watch wakes. Published task results remain available. It accepts an | ||
| task the child delegated, cancels the task's own queued turn, and disposes | ||
| automatic parent delivery. Like a user Stop, `thread.stop` interrupts the running | ||
| turn, holds queued prompts, cancels buffered provider wakes, and ends pull request | ||
| watches. The task's own queued turn is cancelled even if Stop already held it, so | ||
| a task that is only queued can be cancelled; other queued prompts in the child | ||
| stay held for Resume. A nonterminal task is rejected when it has no active run, | ||
| no queued turn of its own, and nothing it is still waiting on: a running | ||
| delegate, a delegate result its parent has not received, or a background task. A | ||
| terminal task returns its existing status, and its child thread still stops the | ||
| same way: a later running turn, including a watch wake, is interrupted, and later | ||
| queued prompts are held, not discarded. In both cases, a follow-up that lost its | ||
| child run but still shows as running on the parent is cancelled there and | ||
|
Comment on lines
+341
to
+342
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Qualify the child-stop behavior for orphaned follow-ups. When the child has no runs, the orphan test in
|
||
| reported as `cancelled`. Published task results remain available. It accepts an | ||
| optional cancellation reason. | ||
|
|
||
| ### `create_threads` | ||
|
|
||
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.
Script executed:
Repository: pingdotgg/t3code
Length of output: 14811
Script executed:
Repository: pingdotgg/t3code
Length of output: 5561
Script executed:
Repository: pingdotgg/t3code
Length of output: 33940
Script executed:
Repository: pingdotgg/t3code
Length of output: 8694
Script executed:
Repository: pingdotgg/t3code
Length of output: 24889
Script executed:
Repository: pingdotgg/t3code
Length of output: 21353
Script executed:
Repository: pingdotgg/t3code
Length of output: 24057
Script executed:
Repository: pingdotgg/t3code
Length of output: 14819
Script executed:
Repository: pingdotgg/t3code
Length of output: 25042
Script executed:
Repository: pingdotgg/t3code
Length of output: 5856
Script executed:
Repository: pingdotgg/t3code
Length of output: 14498
Document the restart-continuation exception.
A follow-up held for a restart continuation can be rejected even when it still has a running delegate or an undelivered delegate result. This can happen when it has no active run or matching queued turn.
Suggested fix