@honor-claw/yoyo 2026.9.4-beta.6 → 2026.9.4-beta.7
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.
|
@@ -78,28 +78,42 @@ async function g(e) {
|
|
|
78
78
|
ok: !1,
|
|
79
79
|
error: "cron_unavailable"
|
|
80
80
|
};
|
|
81
|
-
let n = Date.now(), r = _(t, e).catch(() => void 0), i = v(t, e), a = await Promise.race([i
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
let n = Date.now(), r = _(t, e).catch(() => void 0), i = v(t, e), a = await Promise.race([i.then((e) => e ? "polling" : "polling-exhausted"), r.then(() => "remove")]);
|
|
82
|
+
if (a === "remove") {
|
|
83
|
+
let t = await r, i = Date.now() - n;
|
|
84
|
+
return t === void 0 ? (s.warn("cron remove unresolved: upstream result absent", {
|
|
85
|
+
jobId: e,
|
|
86
|
+
elapsedMs: i
|
|
87
|
+
}), {
|
|
88
|
+
ok: !1,
|
|
89
|
+
error: "cron remove failed"
|
|
90
|
+
}) : (s.debug("cron remove settled by upstream result", {
|
|
91
|
+
jobId: e,
|
|
92
|
+
elapsedMs: i,
|
|
93
|
+
ok: t.ok,
|
|
94
|
+
removed: t.ok ? t.removed : void 0
|
|
95
|
+
}), t);
|
|
96
|
+
}
|
|
97
|
+
return r.then((t) => {
|
|
98
|
+
s.info("cron remove late upstream outcome after returning", {
|
|
99
|
+
jobId: e,
|
|
100
|
+
winner: a,
|
|
101
|
+
ok: t?.ok,
|
|
102
|
+
removed: t?.ok ? t.removed : void 0
|
|
103
|
+
});
|
|
104
|
+
}), a === "polling" ? (s.info("cron remove confirmed by store polling, skipping cleanup wait", {
|
|
85
105
|
jobId: e,
|
|
86
|
-
elapsedMs:
|
|
106
|
+
elapsedMs: Date.now() - n
|
|
87
107
|
}), {
|
|
88
108
|
ok: !0,
|
|
89
|
-
removed: !
|
|
90
|
-
}) : (s.warn("cron remove
|
|
109
|
+
removed: !0
|
|
110
|
+
}) : (s.warn("cron remove polling exhausted, returning without cleanup wait", {
|
|
91
111
|
jobId: e,
|
|
92
|
-
elapsedMs:
|
|
112
|
+
elapsedMs: Date.now() - n
|
|
93
113
|
}), {
|
|
94
|
-
ok: !
|
|
95
|
-
|
|
96
|
-
})
|
|
97
|
-
jobId: e,
|
|
98
|
-
raceWinner: o,
|
|
99
|
-
elapsedMs: l,
|
|
100
|
-
ok: c.ok,
|
|
101
|
-
removed: c.ok ? c.removed : void 0
|
|
102
|
-
}), c);
|
|
114
|
+
ok: !0,
|
|
115
|
+
removed: !1
|
|
116
|
+
});
|
|
103
117
|
}
|
|
104
118
|
async function _(t, n) {
|
|
105
119
|
try {
|