@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.js
CHANGED
|
@@ -8425,6 +8425,12 @@ var EvalRunner = class {
|
|
|
8425
8425
|
await store2.updateRunStatus(ctx.tenantId, runId, { status: "aborted", completedAt: /* @__PURE__ */ new Date() });
|
|
8426
8426
|
return true;
|
|
8427
8427
|
}
|
|
8428
|
+
async waitForRun(runId) {
|
|
8429
|
+
const ctx = this.runs.get(runId);
|
|
8430
|
+
if (!ctx) throw new Error("Run not found or no longer in memory");
|
|
8431
|
+
const { report } = await ctx.promise;
|
|
8432
|
+
return report;
|
|
8433
|
+
}
|
|
8428
8434
|
isRunning(runId) {
|
|
8429
8435
|
return this.runs.has(runId);
|
|
8430
8436
|
}
|