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

Method execute

benchmarks/src/workloads/sleep.py:46–53  ·  view source on GitHub ↗
(self, env: DaskEnvironment)

Source from the content-addressed store, hash-verified

44
45class SleepDask(Sleep):
46 def execute(self, env: DaskEnvironment) -> WorkloadExecutionResult:
47 from distributed import Client
48
49 def run(client: Client):
50 tasks = client.map(sleep, [self.sleep_duration] * self.task_count, pure=False)
51 client.gather(tasks)
52
53 return measure_dask_tasks(env, run)
54
55
56class SleepDaskSpawn(Sleep):

Callers

nothing calls this directly

Calls 1

measure_dask_tasksFunction · 0.85

Tested by

no test coverage detected