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

Function prepare_tasks

tests/autoalloc/utils.py:80–85  ·  view source on GitHub ↗
(hq_env: HqEnv, count=1000, nodes=1)

Source from the content-addressed store, hash-verified

78
79
80def prepare_tasks(hq_env: HqEnv, count=1000, nodes=1):
81 args = ["submit", f"--array=0-{count}"]
82 if nodes > 1:
83 args += ["--nodes", str(nodes)]
84 args += ["sleep", "1"]
85 hq_env.command(args)
86
87
88def remove_queue(hq_env: HqEnv, queue_id: int, force=False, **kwargs):

Calls 1

commandMethod · 0.80