MCPcopy Create free account
hub / github.com/LukeBailey181/sgs / QueryServerSubprocesses

Class QueryServerSubprocesses

sgs/models/query_server.py:71–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71class QueryServerSubprocesses(TaskServer):
72 # This is a query server that launches workers as subprocesses
73
74 def launch_workers(self, num_workers: Optional[int] = None) -> None:
75 if self._tasks.qsize() == 0 and len(self._in_progress) == 0:
76 raise ValueError(
77 "There is no work to be done and you are trying to launch jobs."
78 )
79
80 # Will have to think about what is the right thing to do here
81
82 # resources_config = self.worker_resources_config
83
84 # executor = get_submitit_executor(resources_config)
85
86 def kill_workers(self) -> None:
87 pass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected