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

Method markActivity

src/node/runtime/CoderSSHRuntime.ts:133–142  ·  view source on GitHub ↗
(workspaceName = this.coderConfig.workspaceName)

Source from the content-addressed store, hash-verified

131 }
132
133 private markActivity(workspaceName = this.coderConfig.workspaceName): void {
134 if (!workspaceName) {
135 return;
136 }
137
138 const now = Date.now();
139 const activityByWorkspace = getCoderActivityMap(this.coderService);
140 pruneCoderActivityMap(activityByWorkspace, now);
141 activityByWorkspace.set(workspaceName, now);
142 }
143
144 private coderWorkspaceNotFound(workspaceName: string): EnsureReadyResult {
145 return {

Callers 1

Calls 3

getCoderActivityMapFunction · 0.85
pruneCoderActivityMapFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected