MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / waitSsh

Function waitSsh

e2e/src/vm/tart.ts:154–160  ·  view source on GitHub ↗
(attempts: number)

Source from the content-addressed store, hash-verified

152 };
153
154 const waitSsh = async (attempts: number): Promise<boolean> => {
155 for (let i = 0; i < attempts; i++) {
156 if ((await ssh("true")).code === 0) return true;
157 await sleep(2000);
158 }
159 return false;
160 };
161
162 const handle: VmHandle = {
163 os,

Callers 1

tartVmFunction · 0.85

Calls 2

sleepFunction · 0.90
sshFunction · 0.70

Tested by

no test coverage detected