mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
chore: add kill after for timeout (#899)
This commit is contained in:
@@ -213,7 +213,7 @@ class Env(Generic[ASpecificEnvConf]):
|
||||
)
|
||||
|
||||
entry_add_timeout = (
|
||||
f"/bin/sh -c 'timeout {self.conf.running_timeout_period} {entry}; "
|
||||
f"/bin/sh -c 'timeout --kill-after=10 {self.conf.running_timeout_period} {entry}; "
|
||||
+ "entry_exit_code=$?; "
|
||||
+ (f"chmod -R 777 {self.conf.mount_path}; " if hasattr(self.conf, "mount_path") else "")
|
||||
+ "exit $entry_exit_code'"
|
||||
|
||||
Reference in New Issue
Block a user