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

Method end

codeclash/tournaments/single_player.py:140–144  ·  view source on GitHub ↗

Clean up game resources.

(self)

Source from the content-addressed store, hash-verified

138 self.local_output_dir.mkdir(parents=True, exist_ok=True)
139 atomic_write(self.local_output_dir / "metadata.json", json.dumps(self.get_metadata(), indent=2))
140 if is_running_in_aws_batch():
141 s3_log_sync(self.local_output_dir, logger=self.logger)
142
143 def end(self):
144 """Clean up game resources."""
145 self._save()
146 self.game.end(self.cleanup_on_end)
147 self.cleanup_handlers()

Callers 1

runMethod · 0.95

Calls 2

_saveMethod · 0.95
cleanup_handlersMethod · 0.80

Tested by

no test coverage detected