Spaces:
Sleeping
Sleeping
Terry Zhuo
commited on
Commit
·
c9010bb
1
Parent(s):
bdae256
increase kill time
Browse files
app.py
CHANGED
|
@@ -81,10 +81,10 @@ def run_bigcodebench(command):
|
|
| 81 |
if process.poll() is None: # If the process is still running
|
| 82 |
process.terminate()
|
| 83 |
is_running = False
|
| 84 |
-
yield "Process terminated after
|
| 85 |
|
| 86 |
-
# Start a timer to kill the process after
|
| 87 |
-
timer = threading.Timer(
|
| 88 |
timer.start()
|
| 89 |
|
| 90 |
for line in process.stdout:
|
|
|
|
| 81 |
if process.poll() is None: # If the process is still running
|
| 82 |
process.terminate()
|
| 83 |
is_running = False
|
| 84 |
+
yield "Process terminated after 12 minutes timeout.\n"
|
| 85 |
|
| 86 |
+
# Start a timer to kill the process after 12 minutes
|
| 87 |
+
timer = threading.Timer(720, kill_process)
|
| 88 |
timer.start()
|
| 89 |
|
| 90 |
for line in process.stdout:
|