Update app.py
Browse files95 unmodified lines9697989910010110295 unmodified linesif process.returncode != 0:yield f"Error: Command exited with status {process.returncode}\n"cleanup_command = "pids=$(ps -u $(id -u) -o pid,comm | grep 'bigcodebench' | awk '{print $1}'); if [ -n \"$pids\" ]; then echo $pids | xargs -r kill; fi; rm -rf /tmp/*"subprocess.run(cleanup_command, shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)is_running = False95 unmodified lines9697989910010110295 unmodified linesif process.returncode != 0:yield f"Error: Command exited with status {process.returncode}\n"cleanup_command = "pids=$(ps -u $(id -u) -o pid,comm | grep 'bigcodebench' | awk '{print $1}'); if [ -n \"$pids\" ]; then echo $pids | xargs -r kill; fi; rm -rf /tmp/*; kill $(ps -A -ostat,ppid | awk '/[zZ]/ && !a[$2]++ {print $2}')"subprocess.run(cleanup_command, shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)is_running = False
app.py+1-1