Skip to content

Commit

Permalink
server: add hooks to get cluster worker controls
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Nov 28, 2024
1 parent 8df38db commit b1e1f54
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions server/src/services/cluster-fork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,14 @@ export class ClusterForkService {
}
return ret;
}

async getEnvControl(clusterWorkerId: string) {
const clusterWorker = this.runtime.clusterWorkers.get(clusterWorkerId);
return clusterWorker.peer.getParam('env-control');
}

async getServiceControl(clusterWorkerId: string) {
const clusterWorker = this.runtime.clusterWorkers.get(clusterWorkerId);
return clusterWorker.peer.getParam('service-control');
}
}

0 comments on commit b1e1f54

Please sign in to comment.