MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / close

Method close

tools/provenance-eval/run.py:146–157  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

144 return self.rpc({"TurnStatus": {"session_id": SESSION, "turn_number": turn}})["TurnLifecycle"]["turn"]
145
146 def close(self):
147 if self.owner is not None and self.owner.poll() is None:
148 try:
149 self.rpc("Shutdown")
150 self.owner.wait(timeout=10)
151 except (OSError, RuntimeError, subprocess.TimeoutExpired):
152 self.owner.kill()
153 self.owner.wait(timeout=10)
154 self.owner_log.seek(0)
155 logs = self.owner_log.read().decode(errors="replace")
156 self.owner_log.close()
157 return logs
158
159
160def measure_turn(fixture, config, payload_bytes, turn, previous_ledger):

Callers 4

measure_caseFunction · 0.95
workerFunction · 0.80
measureFunction · 0.80
mainFunction · 0.80

Calls 2

rpcMethod · 0.95
decodeMethod · 0.45

Tested by

no test coverage detected