MCPcopy Create free account
hub / github.com/tiann/hapi / waitForRunnerToStop

Function waitForRunnerToStop

cli/src/commands/runner.ts:73–82  ·  view source on GitHub ↗
(maxAttempts = 50)

Source from the content-addressed store, hash-verified

71}
72
73async function waitForRunnerToStop(maxAttempts = 50): Promise<boolean> {
74 for (let i = 0; i < maxAttempts; i++) {
75 if (!(await checkIfRunnerRunningAndCleanupStaleState())) {
76 return true
77 }
78 await new Promise(resolve => setTimeout(resolve, 100))
79 }
80
81 return false
82}
83
84export const runnerCommand: CommandDefinition = {
85 name: 'runner',

Callers 1

runner.tsFile · 0.85

Tested by

no test coverage detected