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

Method scheduleNotifyOnTerminalPersist

src/node/services/taskService.ts:4130–4145  ·  view source on GitHub ↗
(
    taskId: string,
    ownerWorkspaceId: string | undefined
  )

Source from the content-addressed store, hash-verified

4128 }
4129
4130 private scheduleNotifyOnTerminalPersist(
4131 taskId: string,
4132 ownerWorkspaceId: string | undefined
4133 ): void {
4134 const promise = this.persistNotifyOnTerminalPolicy(taskId, ownerWorkspaceId)
4135 .catch((error: unknown) => {
4136 log.error("Failed to persist notify_on_terminal policy for backgrounded wait", {
4137 taskId,
4138 error,
4139 });
4140 })
4141 .finally(() => {
4142 this.pendingNotifyOnTerminalPersists.delete(promise);
4143 });
4144 this.pendingNotifyOnTerminalPersists.add(promise);
4145 }
4146
4147 private async persistNotifyOnTerminalPolicy(
4148 taskId: string,

Calls 3

addMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected