()
| 9 | import { probeGatewayReady } from './ws-client'; |
| 10 | |
| 11 | export 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 | |
| 24 | export async function terminateOwnedGatewayProcess(child: Electron.UtilityProcess): Promise<void> { |
| 25 | const terminateWindowsProcessTree = async (pid: number): Promise<void> => { |
no test coverage detected