MCPcopy
hub / github.com/ValueCell-ai/ClawX / warmupManagedPythonReadiness

Function warmupManagedPythonReadiness

electron/gateway/supervisor.ts:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import { probeGatewayReady } from './ws-client';
10
11export function warmupManagedPythonReadiness(): void {
12 void isPythonReady().then((pythonReady) => {
13 if (!pythonReady) {
14 logger.info('Python environment missing or incomplete, attempting background repair...');
15 void setupManagedPython().catch((err) => {
16 logger.error('Background Python repair failed:', err);
17 });
18 }
19 }).catch((err) => {
20 logger.error('Failed to check Python environment:', err);
21 });
22}
23
24export async function terminateOwnedGatewayProcess(child: Electron.UtilityProcess): Promise<void> {
25 const terminateWindowsProcessTree = async (pid: number): Promise<void> => {

Callers 1

startMethod · 0.90

Calls 2

isPythonReadyFunction · 0.90
setupManagedPythonFunction · 0.90

Tested by

no test coverage detected