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

Method requestReportedChildCleanupRechecks

src/node/services/taskService.ts:9026–9050  ·  view source on GitHub ↗
(parentWorkspaceId: string)

Source from the content-addressed store, hash-verified

9024 }
9025
9026 private async requestReportedChildCleanupRechecks(parentWorkspaceId: string): Promise<void> {
9027 assert(
9028 parentWorkspaceId.length > 0,
9029 "requestReportedChildCleanupRechecks: parentWorkspaceId must be non-empty"
9030 );
9031
9032 const cfg = this.config.loadConfigOrDefault();
9033 const reportedChildTaskIds: string[] = [];
9034 for (const project of cfg.projects.values()) {
9035 for (const workspace of project.workspaces) {
9036 const workspaceId = coerceNonEmptyString(workspace.id);
9037 if (!workspaceId || workspace.parentWorkspaceId !== parentWorkspaceId) {
9038 continue;
9039 }
9040 if (!hasCompletedAgentReport(workspace)) {
9041 continue;
9042 }
9043 reportedChildTaskIds.push(workspaceId);
9044 }
9045 }
9046
9047 for (const workspaceId of reportedChildTaskIds) {
9048 await this.requestReportedTaskCleanupRecheck(workspaceId);
9049 }
9050 }
9051
9052 private async deliverDeferredBestOfReportsForParent(parentWorkspaceId: string): Promise<void> {
9053 assert(

Callers 1

handleStreamEndMethod · 0.95

Calls 6

coerceNonEmptyStringFunction · 0.90
hasCompletedAgentReportFunction · 0.90
loadConfigOrDefaultMethod · 0.80
pushMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected