Problem
spawn() called without timeout. Long-running or hanging scripts freeze app.
Recommended Solution
Add process timeout:
const proc = spawn(pythonCmd, args);
const timeout = setTimeout(() => {
proc.kill('SIGTERM');
}, 30000); // 30 second timeout
proc.on('exit', () => clearTimeout(timeout));
Program Template
Suggested Labels
reliability, subprocess, timeout, gssoc-eligible
EOF
)
Problem
spawn() called without timeout. Long-running or hanging scripts freeze app.
Recommended Solution
Add process timeout:
Program Template
Suggested Labels
reliability, subprocess, timeout, gssoc-eligible
EOF
)