@rivetkit/engine-runner 0.0.0-pr.4880.c7bfbc5 → 0.0.0-pr.4881.2dba543
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/mod.cjs +7 -3
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.js +7 -3
- package/dist/mod.js.map +1 -1
- package/package.json +3 -3
- package/src/mod.ts +16 -3
package/dist/mod.js
CHANGED
|
@@ -1815,9 +1815,12 @@ var Runner = class {
|
|
|
1815
1815
|
);
|
|
1816
1816
|
}
|
|
1817
1817
|
this.#kvRequests.clear();
|
|
1818
|
-
const pegboardWebSocket = this
|
|
1819
|
-
|
|
1820
|
-
|
|
1818
|
+
const pegboardWebSocket = this.#pegboardWebSocket;
|
|
1819
|
+
const readyState = pegboardWebSocket == null ? void 0 : pegboardWebSocket.readyState;
|
|
1820
|
+
const isOpen = readyState === 1;
|
|
1821
|
+
const isConnecting = readyState === 0;
|
|
1822
|
+
if (pegboardWebSocket && (isOpen || isConnecting)) {
|
|
1823
|
+
if (immediate || isConnecting) {
|
|
1821
1824
|
pegboardWebSocket.close(1e3, "pegboard.runner_shutdown");
|
|
1822
1825
|
} else {
|
|
1823
1826
|
try {
|
|
@@ -2072,6 +2075,7 @@ var Runner = class {
|
|
|
2072
2075
|
const init = message.val;
|
|
2073
2076
|
if (this.runnerId !== init.runnerId) {
|
|
2074
2077
|
this.runnerId = init.runnerId;
|
|
2078
|
+
this.#logCached = void 0;
|
|
2075
2079
|
this.#stopAllActors();
|
|
2076
2080
|
}
|
|
2077
2081
|
this.#protocolMetadata = init.metadata;
|