MCPcopy Create free account
hub / github.com/SHAILAB-IPEC/OpenFly-Platform / kill_failed_process

Method kill_failed_process

train/eval.py:182–191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

180 file.write(line)
181
182 def kill_failed_process(self):
183 result = subprocess.run(['pgrep', '-n', 'CrashReport'], stdout=subprocess.PIPE)
184 cr_pid = result.stdout.decode().strip()
185 if len(cr_pid) > 0:
186 subprocess.run(['kill', '-9', cr_pid])
187
188 result = subprocess.run(['pgrep', '-n', 'CitySample'], stdout=subprocess.PIPE)
189 cr_pid = result.stdout.decode().strip()
190 if len(cr_pid) > 0:
191 subprocess.run(['kill', '-9', cr_pid])
192
193 def _init_ue_sim(self):
194 env_dir = "envs/ue/" + self.env_name

Callers 1

__init__Method · 0.95

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected