@axiom-lattice/gateway 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -6417,6 +6417,12 @@ var EvalRunner = class {
|
|
|
6417
6417
|
await store.updateRunStatus(ctx.tenantId, runId, { status: "aborted", completedAt: /* @__PURE__ */ new Date() });
|
|
6418
6418
|
return true;
|
|
6419
6419
|
}
|
|
6420
|
+
async waitForRun(runId) {
|
|
6421
|
+
const ctx = this.runs.get(runId);
|
|
6422
|
+
if (!ctx) throw new Error("Run not found or no longer in memory");
|
|
6423
|
+
const { report } = await ctx.promise;
|
|
6424
|
+
return report;
|
|
6425
|
+
}
|
|
6420
6426
|
isRunning(runId) {
|
|
6421
6427
|
return this.runs.has(runId);
|
|
6422
6428
|
}
|