* 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
)
| 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, |
no test coverage detected