@apilift/cli 1.8.11 → 1.8.12-dev.1794253935.fbf7b3e81ef137dc9a58a9347b2591987962d4bb
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.
|
@@ -30164,7 +30164,7 @@ function probeState(root, now = Date.now()) {
|
|
|
30164
30164
|
try {
|
|
30165
30165
|
const db = open2(root, true);
|
|
30166
30166
|
try {
|
|
30167
|
-
const work = db.prepare("SELECT (EXISTS(SELECT 1 FROM scopes WHERE expires_at > ?) OR EXISTS(SELECT 1 FROM jobs)) AS needed").get(now);
|
|
30167
|
+
const work = db.prepare("SELECT (EXISTS(SELECT 1 FROM scopes WHERE expires_at > ?) OR EXISTS(SELECT 1 FROM jobs j LEFT JOIN scopes s ON s.id=j.scope_id WHERE j.status != 'delivered' OR s.retained_at IS NULL OR s.window_json IS NOT NULL OR s.retained_at > ?)) AS needed").get(now, now - 2e4);
|
|
30168
30168
|
if (work.needed) return "needed";
|
|
30169
30169
|
const demands = db.prepare("SELECT owner_pid FROM bridge_demands WHERE expires_at > ?").all(now);
|
|
30170
30170
|
return demands.some((demand) => ownerAlive(demand.owner_pid)) ? "needed" : "idle";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apilift/cli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.12-dev.1794253935.fbf7b3e81ef137dc9a58a9347b2591987962d4bb",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=24.16.0 <27"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "fbf7b3e81ef137dc9a58a9347b2591987962d4bb",
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
43
43
|
"url": "git+https://github.com/egor-sergeev/apilift.git",
|