Skip to content

Commit c83f52b

Browse files
committed
change grace period to 2s
1 parent aa1bcc1 commit c83f52b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aide/interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,12 @@ def cleanup_session(self):
186186
try:
187187
# Reduce grace period from 2 seconds to 0.5
188188
self.process.terminate()
189-
self.process.join(timeout=0.5)
189+
self.process.join(timeout=2)
190190

191191
if self.process.exitcode is None:
192192
logger.warning("Process failed to terminate, killing immediately")
193193
self.process.kill()
194-
self.process.join(timeout=0.5)
194+
self.process.join(timeout=2)
195195

196196
if self.process.exitcode is None:
197197
logger.error("Process refuses to die, using SIGKILL")

0 commit comments

Comments
 (0)