MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / run

Method run

app/execute.py:32–42  ·  view source on GitHub ↗

Method to be run in sub-process.

(self)

Source from the content-addressed store, hash-verified

30 self.parent_conn, self.child_conn = multiprocessing.Pipe()
31
32 def run(self):
33 """Method to be run in sub-process."""
34 result = ProcessResult()
35 try:
36 if self._target:
37 result.return_value = self._target(*self._args, **self._kwargs)
38 except Exception as e:
39 result.exception = e
40 raise
41 finally:
42 self.child_conn.send(result)
43
44 def result(self):
45 """Get the result from the child process.

Callers 2

_exec_shutdownFunction · 0.80
mainFunction · 0.80

Calls 1

ProcessResultClass · 0.85

Tested by

no test coverage detected