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

Method execute

benchmarks/src/workloads/empty.py:22–29  ·  view source on GitHub ↗
(self, env: DaskEnvironment)

Source from the content-addressed store, hash-verified

20 return {"task_count": self.task_count}
21
22 def execute(self, env: DaskEnvironment) -> WorkloadExecutionResult:
23 from distributed import Client
24
25 def run(client: Client):
26 tasks = [client.submit(empty, pure=False) for _ in range(self.task_count)]
27 client.gather(tasks)
28
29 return measure_dask_tasks(env, run)

Callers

nothing calls this directly

Calls 1

measure_dask_tasksFunction · 0.85

Tested by

no test coverage detected