(
taskId: string,
ownerWorkspaceId: string | undefined
)
| 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, |
no test coverage detected