MCPcopy Index your code
hub / github.com/simstudioai/sim / loggedRunStatusUpdate

Function loggedRunStatusUpdate

apps/sim/lib/copilot/request/lifecycle/finalize.ts:181–195  ·  view source on GitHub ↗
(
  runId: string,
  status: Parameters<typeof updateRunStatus>[1],
  requestId: string,
  updates: Parameters<typeof updateRunStatus>[2] = {}
)

Source from the content-addressed store, hash-verified

179}
180
181async function loggedRunStatusUpdate(
182 runId: string,
183 status: Parameters<typeof updateRunStatus>[1],
184 requestId: string,
185 updates: Parameters<typeof updateRunStatus>[2] = {}
186): Promise<void> {
187 try {
188 await updateRunStatus(runId, status, updates)
189 } catch (error) {
190 logger.warn(`[${requestId}] Failed to update run status to ${status}`, {
191 runId,
192 error: toError(error).message,
193 })
194 }
195}

Callers 3

handleAbortedFunction · 0.85
handleErrorFunction · 0.85
handleSuccessFunction · 0.85

Calls 3

updateRunStatusFunction · 0.90
toErrorFunction · 0.90
warnMethod · 0.65

Tested by

no test coverage detected