Update app.py
Browse files95 unmodified lines969798999910010110295 unmodified lines if 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/*" 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 = Falseapp.py+1-1