@rivetkit/engine-runner 2.3.0-rc.10 → 2.3.0-rc.12
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 +6 -6
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.js +6 -6
- package/dist/mod.js.map +1 -1
- package/package.json +3 -3
- package/src/mod.ts +6 -6
- package/src/tunnel.ts +1 -5
- package/src/websocket-tunnel-adapter.ts +3 -3
package/dist/mod.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// src/mod.ts
|
|
2
2
|
import * as protocol from "@rivetkit/engine-runner-protocol";
|
|
3
|
+
import { v4 as uuidv4 } from "uuid";
|
|
3
4
|
|
|
4
5
|
// src/log.ts
|
|
5
6
|
var LOGGER;
|
|
@@ -1537,7 +1538,6 @@ async function importWebSocket() {
|
|
|
1537
1538
|
}
|
|
1538
1539
|
|
|
1539
1540
|
// src/mod.ts
|
|
1540
|
-
import { v4 as uuidv4 } from "uuid";
|
|
1541
1541
|
var KV_EXPIRE = 3e4;
|
|
1542
1542
|
var PROTOCOL_VERSION = 7;
|
|
1543
1543
|
var EVENT_BACKLOG_WARN_THRESHOLD = 1e4;
|
|
@@ -2217,7 +2217,7 @@ var Runner = class {
|
|
|
2217
2217
|
);
|
|
2218
2218
|
for (const [_, actor] of this.#actors) {
|
|
2219
2219
|
const checkpoint = ack.lastEventCheckpoints.find(
|
|
2220
|
-
(x) => x.actorId
|
|
2220
|
+
(x) => x.actorId === actor.actorId
|
|
2221
2221
|
);
|
|
2222
2222
|
if (checkpoint) actor.handleAckEvents(checkpoint.index);
|
|
2223
2223
|
}
|
|
@@ -2306,18 +2306,18 @@ var Runner = class {
|
|
|
2306
2306
|
});
|
|
2307
2307
|
await this.#config.onActorStart(actorId, generation, actorConfig);
|
|
2308
2308
|
instance.actorStartPromise.resolve();
|
|
2309
|
-
} catch (
|
|
2309
|
+
} catch (error) {
|
|
2310
2310
|
(_d = this.log) == null ? void 0 : _d.error({
|
|
2311
2311
|
msg: "error starting runner actor",
|
|
2312
2312
|
actorId,
|
|
2313
|
-
|
|
2313
|
+
error
|
|
2314
2314
|
});
|
|
2315
|
-
instance.actorStartPromise.reject(
|
|
2315
|
+
instance.actorStartPromise.reject(error);
|
|
2316
2316
|
await this.forceStopActor(actorId, generation);
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
2319
|
async #handleCommandStopActor(commandWrapper) {
|
|
2320
|
-
const
|
|
2320
|
+
const _stopCommand = commandWrapper.inner.val;
|
|
2321
2321
|
const actorId = commandWrapper.checkpoint.actorId;
|
|
2322
2322
|
const generation = commandWrapper.checkpoint.generation;
|
|
2323
2323
|
await this.forceStopActor(actorId, generation);
|