@skydiveai/pi-extensions 0.1.0-beta.2628 → 0.1.0-beta.2629
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 +3 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4688,7 +4688,9 @@ function watchdogTick(now) {
|
|
|
4688
4688
|
}
|
|
4689
4689
|
if (now - lastKeepaliveAt >= KEEPALIVE_EVERY_MS) {
|
|
4690
4690
|
lastKeepaliveAt = now;
|
|
4691
|
-
|
|
4691
|
+
const messageIds = new Set(running.map((task) => task.messageId));
|
|
4692
|
+
if (messageIds.size === 0) postHeartbeat({ messageId: null });
|
|
4693
|
+
else for (const messageId of messageIds) postHeartbeat({ messageId });
|
|
4692
4694
|
}
|
|
4693
4695
|
}
|
|
4694
4696
|
function stopWatchdog() {
|