mirror of
https://github.com/koush/scrypted.git
synced 2026-04-27 02:11:08 +01:00
sdk: add cluster manager
This commit is contained in:
@@ -207,6 +207,8 @@ export function startClusterClient(mainFilename: string) {
|
||||
unzippedPath,
|
||||
zipHash,
|
||||
}, undefined);
|
||||
runtimeWorker.stdout.on('data', data => console.log(data.toString()));
|
||||
runtimeWorker.stderr.on('data', data => console.error(data.toString()));
|
||||
|
||||
const threadPeer = new RpcPeer('main', 'thread', (message, reject, serializationContext) => runtimeWorker.send(message, reject, serializationContext));
|
||||
runtimeWorker.setupRpcPeer(threadPeer);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import type { ScryptedRuntime } from "../runtime";
|
||||
import { matchesClusterLabels } from "../cluster/cluster-labels";
|
||||
import type { ScryptedRuntime } from "../runtime";
|
||||
import { ClusterForkOptions, ClusterForkParam, ClusterWorker, PeerLiveness } from "../scrypted-cluster-main";
|
||||
import { RpcPeer } from "../rpc";
|
||||
|
||||
export class ClusterFork {
|
||||
constructor(public runtime: ScryptedRuntime) { }
|
||||
|
||||
Reference in New Issue
Block a user