MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / ExtractSubmitScriptPath

Class ExtractSubmitScriptPath

tests/autoalloc/utils.py:106–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106class ExtractSubmitScriptPath(CommandHandler):
107 def __init__(self, adapter: ManagerAdapter):
108 super().__init__(adapter)
109 self.queue = CommQueue()
110
111 async def handle_cli_submit(self, input: CommandInput):
112 script_path = input.arguments[0]
113 self.queue.put(script_path)
114 return await super().handle_cli_submit(input)
115
116 def get_script_path(self) -> str:
117 return self.queue.get()
118
119
120def pause_queue(hq_env: HqEnv, queue_id: int, **kwargs):

Calls

no outgoing calls