(runId: string)
| 168 | } |
| 169 | |
| 170 | async function waitForRunToComplete(runId: string) { |
| 171 | let run = await runs.retrieve(runId); |
| 172 | |
| 173 | while (!run.isCompleted) { |
| 174 | console.log("run is not completed, waiting...", run); |
| 175 | await new Promise((resolve) => setTimeout(resolve, 2000)); |
| 176 | run = await runs.retrieve(runId); |
| 177 | } |
| 178 | |
| 179 | console.log("run is completed", run); |
| 180 | |
| 181 | return run; |
| 182 | } |
| 183 | |
| 184 | async function waitForRunToExecute(runId: string) { |
| 185 | let run = await runs.retrieve(runId); |
no test coverage detected
searching dependent graphs…