Skip to content

Commit ebe238a

Browse files
committed
SEP-2663: Allow ttlSeconds to change during a task
1 parent c58c652 commit ebe238a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

docs/seps/2663-tasks-extension.mdx

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

seps/2663-tasks-extension.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ interface Task {
140140

141141
/**
142142
* Time-to-live duration from creation in integer seconds, null for unlimited.
143-
* The server may discard the task after the TTL elapses.
143+
* The server may discard the task after the TTL elapses. This value MAY change
144+
* over the lifetime of a task.
144145
* Aligns with HTTP cache-control conventions per SEP-2549.
145146
*/
146147
ttlSeconds: number | null;
@@ -413,7 +414,7 @@ type GetTaskResult = Result & DetailedTask;
413414

414415
The response carries the appropriate response variant for the task's current status (see [Task Status](#task-status)). The `resultType` field **MUST** be set to `"complete"` on this object as it is the standard result shape for the `tasks/get` request.
415416

416-
If the task has a non-null `ttlSeconds`, clients **MAY** treat the TTL as a backstop: if the task's observable status has not reflected the update after `createdAt` plus `ttlSeconds` has elapsed, the client **MAY** consider the task to no longer be usable. Conversely, servers **MAY** mark a task as `failed` at any point after the TTL elapses, and subsequently delete it at any time.
417+
If the task has a non-null `ttlSeconds`, clients **MAY** treat the TTL as a backstop: if the task's observable status has not reflected the update after `createdAt` plus `ttlSeconds` has elapsed, the client **MAY** consider the task to no longer be usable. Conversely, servers **MAY** mark a task as `failed` at any point after the TTL elapses, and subsequently delete it at any time. The value of `ttlSeconds` **MAY** change over the lifetime of a task.
417418

418419
### Task Input Requests
419420

0 commit comments

Comments
 (0)