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

Method listWorkspaceTurnTasks

src/node/services/taskService.ts:5747–5761  ·  view source on GitHub ↗
(
    ownerWorkspaceId: string,
    options: { statuses?: readonly WorkspaceTurnTaskStatus[] } = {}
  )

Source from the content-addressed store, hash-verified

5745 }
5746
5747 async listWorkspaceTurnTasks(
5748 ownerWorkspaceId: string,
5749 options: { statuses?: readonly WorkspaceTurnTaskStatus[] } = {}
5750 ): Promise<WorkspaceTurnTaskHandleRecord[]> {
5751 const records = await this.taskHandleStore.listWorkspaceTurns(ownerWorkspaceId);
5752 const statuses = options.statuses != null ? new Set(options.statuses) : null;
5753 const result: WorkspaceTurnTaskHandleRecord[] = [];
5754 for (const record of records) {
5755 const latest = await this.normalizeWorkspaceTurnRecord(record);
5756 if (latest != null && (statuses == null || statuses.has(latest.status))) {
5757 result.push(latest);
5758 }
5759 }
5760 return result;
5761 }
5762
5763 async interruptWorkspaceTurn(
5764 ownerWorkspaceId: string,

Calls 4

listWorkspaceTurnsMethod · 0.80
pushMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected