Skip to content

Commit 3cf6da0

Browse files
committed
Clarify that requestors may continue polling after calling tasks/result
1 parent 5268def commit 3cf6da0

File tree

1 file changed

+3
-1
lines changed
  • docs/specification/draft/basic/utilities

1 file changed

+3
-1
lines changed

docs/specification/draft/basic/utilities/tasks.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ This guidance is non-binding and is provisional logic intended to account for th
185185
Requestors poll for task completion by sending [`tasks/get`](/specification/draft/schema#tasks%2Fget) requests.
186186
Requestors **SHOULD** respect the `pollInterval` provided in responses when determining polling frequency.
187187

188-
Requestors **SHOULD** continue polling until the task reaches a terminal status (`completed`, `failed`, or `cancelled`), or until encountering the [`input_required`](#input-required-status) status.
188+
Requestors **SHOULD** continue polling until the task reaches a terminal status (`completed`, `failed`, or `cancelled`), or until encountering the [`input_required`](#input-required-status) status. Note that invoking `tasks/result` does not imply that the requestor needs to stop polling - requestors **SHOULD** continue polling the task status via `tasks/get` if they are not actively waiting for `tasks/result` to complete.
189189

190190
**Request:**
191191

@@ -223,6 +223,8 @@ After a task completes the operation result is retrieved via [`tasks/result`](/s
223223

224224
To retrieve the result of a completed task, requestors can send a `tasks/result` request:
225225

226+
While `tasks/result` blocks until the task reaches a terminal status, requestors can continue polling via `tasks/get` in parallel if they are not actively blocked waiting for the result. This allows requestors to monitor status changes or display progress updates while the task executes, even after invoking `tasks/result`.
227+
226228
**Request:**
227229

228230
```json

0 commit comments

Comments
 (0)