@tenetkit/pg 0.34.1 → 0.34.2

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.
@@ -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
- (r.parent_run_id IS NULL AND EXISTS (SELECT 1 FROM tenetkit_lanes l WHERE l.head_run_id = r.run_id))
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.1",
3
+ "version": "0.34.2",
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.1"
40
+ "tenetkit": "0.34.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@effect/vitest": "4.0.0-rc.109",