@tenetkit/pg 0.34.1 → 0.34.3
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/postgres/claims.js +7 -1
- package/package.json +2 -2
package/dist/postgres/claims.js
CHANGED
|
@@ -12,7 +12,13 @@ export const claimReadyRuns = (options) => Effect.gen(function* () {
|
|
|
12
12
|
WHERE r.status IN ('queued', 'running', 'cancelling')
|
|
13
13
|
AND r.cancellation_requested = FALSE
|
|
14
14
|
AND (
|
|
15
|
-
(
|
|
15
|
+
(
|
|
16
|
+
r.parent_run_id IS NULL
|
|
17
|
+
AND (
|
|
18
|
+
r.status = 'running'
|
|
19
|
+
OR EXISTS (SELECT 1 FROM tenetkit_lanes l WHERE l.head_run_id = r.run_id)
|
|
20
|
+
)
|
|
21
|
+
)
|
|
16
22
|
OR EXISTS (
|
|
17
23
|
SELECT 1 FROM tenetkit_run_links link
|
|
18
24
|
WHERE link.child_run_id = r.run_id AND link.readiness = 'ready'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@effect/sql-pg": "4.0.0-rc.109",
|
|
40
|
-
"tenetkit": "0.34.
|
|
40
|
+
"tenetkit": "0.34.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@effect/vitest": "4.0.0-rc.109",
|