Skip to content

Commit 1cfde74

Browse files
authored
chore: add kill after for timeout (microsoft#899)
1 parent 2e6b149 commit 1cfde74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rdagent/utils/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def run_ret_code(
213213
)
214214

215215
entry_add_timeout = (
216-
f"/bin/sh -c 'timeout {self.conf.running_timeout_period} {entry}; "
216+
f"/bin/sh -c 'timeout --kill-after=10 {self.conf.running_timeout_period} {entry}; "
217217
+ "entry_exit_code=$?; "
218218
+ (f"chmod -R 777 {self.conf.mount_path}; " if hasattr(self.conf, "mount_path") else "")
219219
+ "exit $entry_exit_code'"

0 commit comments

Comments
 (0)