MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / waitForRunToExecute

Function waitForRunToExecute

references/v3-catalog/src/management.ts:184–196  ·  view source on GitHub ↗
(runId: string)

Source from the content-addressed store, hash-verified

182}
183
184async function waitForRunToExecute(runId: string) {
185 let run = await runs.retrieve(runId);
186
187 while (!run.isExecuting) {
188 console.log("run is not executing, waiting...", run);
189 await new Promise((resolve) => setTimeout(resolve, 2000));
190 run = await runs.retrieve(runId);
191 }
192
193 console.log("run is executing", run);
194
195 return run;
196}
197
198async function doSchedules() {
199 const allSchedules = await schedules.list();

Callers 1

doRunsFunction · 0.85

Calls 2

logMethod · 0.65
retrieveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…