MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / close

Method close

codeclash/arenas/scml/runtime/run_scml.py:270–279  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

268 self.close()
269
270 def close(self) -> None:
271 with contextlib.suppress(Exception):
272 self.command_queue.put_nowait(None)
273 self.process.join(0.1)
274 if self.process.is_alive():
275 self.process.terminate()
276 self.process.join(0.1)
277 if self.process.is_alive():
278 self.process.kill()
279 self.process.join()
280
281 def restart(self) -> None:
282 self.close()

Callers 15

_start_workerMethod · 0.95
_record_errorMethod · 0.95
restartMethod · 0.95
remove_file_handlerFunction · 0.45
close_policiesFunction · 0.45
create_elo_plotsMethod · 0.45
_plot_resultsMethod · 0.45
_plot_resultsMethod · 0.45
analyze_winner_shareFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected