@iterativeflow/conformance 2.1.0 → 2.1.1
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.mjs +17 -0
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2327,6 +2327,23 @@ const claimFilterConformance = (label, makeBackend) => {
|
|
|
2327
2327
|
});
|
|
2328
2328
|
expect(all.map((l) => l.runId)).toEqual([a.runId]);
|
|
2329
2329
|
});
|
|
2330
|
+
it("leases a run-less job under a name filter so it can be acked, not skipped forever", async () => {
|
|
2331
|
+
const { store, queue } = await makeBackend();
|
|
2332
|
+
const a = await store.startRun({
|
|
2333
|
+
name: "flow-a",
|
|
2334
|
+
version: 1,
|
|
2335
|
+
input: {}
|
|
2336
|
+
});
|
|
2337
|
+
await queue.enqueue(a.runId);
|
|
2338
|
+
await queue.enqueue("orphan-run");
|
|
2339
|
+
const leased = await queue.claim({
|
|
2340
|
+
limit: 10,
|
|
2341
|
+
leaseMs: 1e3,
|
|
2342
|
+
names: ["flow-a"],
|
|
2343
|
+
now: at(0)
|
|
2344
|
+
});
|
|
2345
|
+
expect(leased.map((l) => l.runId).sort()).toEqual([a.runId, "orphan-run"].sort());
|
|
2346
|
+
});
|
|
2330
2347
|
});
|
|
2331
2348
|
};
|
|
2332
2349
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iterativeflow/conformance",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@iterativeflow/core": "2.1.
|
|
28
|
+
"@iterativeflow/core": "2.1.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"vitest": ">=3"
|