MCPcopy Index your code
hub / github.com/deepnote/deepnote / outputHumanRunSummary

Function outputHumanRunSummary

packages/cli/src/commands/run.ts:1352–1380  ·  view source on GitHub ↗
(
  summary: ExecutionSummary,
  state: RunExecutionState,
  engine: ExecutionEngine
)

Source from the content-addressed store, hash-verified

1350}
1351
1352async function outputHumanRunSummary(
1353 summary: ExecutionSummary,
1354 state: RunExecutionState,
1355 engine: ExecutionEngine
1356): Promise<void> {
1357 const c = getChalk()
1358 output(c.dim('─'.repeat(50)))
1359
1360 if (state.showTop && engine.serverPort) {
1361 const finalMetrics = await fetchMetrics(engine.serverPort)
1362 if (finalMetrics) {
1363 output(c.bold('Final resource usage:'))
1364 displayMetrics(finalMetrics)
1365 }
1366 }
1367
1368 if (state.showProfile && state.blockProfiles.length > 0) {
1369 displayProfileSummary(state.blockProfiles)
1370 }
1371
1372 if (summary.failedBlocks > 0) {
1373 output(
1374 c.red(`Done. ${summary.executedBlocks}/${summary.totalBlocks} blocks executed, ${summary.failedBlocks} failed.`)
1375 )
1376 } else {
1377 const duration = (summary.totalDurationMs / 1000).toFixed(1)
1378 output(c.green(`Done. Executed ${summary.executedBlocks} blocks in ${duration}s`))
1379 }
1380}
1381
1382async function maybeOpenRunResultInCloud({
1383 absolutePath,

Callers 1

runDeepnoteProjectFunction · 0.85

Calls 5

getChalkFunction · 0.90
outputFunction · 0.90
fetchMetricsFunction · 0.90
displayMetricsFunction · 0.90
displayProfileSummaryFunction · 0.90

Tested by

no test coverage detected