MCPcopy Index your code
hub / github.com/coder/mux / markBackgroundWorkNotifyOnTerminal

Method markBackgroundWorkNotifyOnTerminal

src/node/services/taskService.ts:4123–4128  ·  view source on GitHub ↗

* Durably mark a still-active task/handle as `notify_on_terminal`. Used when a foreground wait * detaches because it exceeded its foreground wait budget (timeout) and the work continues in the * background: like queued-message detachment, the work must not re-force the owner to await it. *

(
    taskId: string,
    ownerWorkspaceId: string
  )

Source from the content-addressed store, hash-verified

4121 * Awaited so callers (e.g. the task tool) can rely on the policy before returning pending results.
4122 */
4123 async markBackgroundWorkNotifyOnTerminal(
4124 taskId: string,
4125 ownerWorkspaceId: string
4126 ): Promise<void> {
4127 await this.persistNotifyOnTerminalPolicy(taskId, ownerWorkspaceId);
4128 }
4129
4130 private scheduleNotifyOnTerminalPersist(
4131 taskId: string,

Callers 2

createTaskToolFunction · 0.80

Calls 1

Tested by

no test coverage detected