(env: Environment, submit_fn: Callable[["distributed.Client"], None])
| 106 | |
| 107 | |
| 108 | def measure_dask_tasks(env: Environment, submit_fn: Callable[["distributed.Client"], None]) -> WorkloadExecutionResult: |
| 109 | from ..environment.dask import DaskEnvironment |
| 110 | |
| 111 | assert isinstance(env, DaskEnvironment) |
| 112 | logging.debug("[Dask] Submitting") |
| 113 | |
| 114 | timer = Timings() |
| 115 | with timer.time(): |
| 116 | submit_fn(env.get_client()) |
| 117 | return create_result(timer.duration()) |
| 118 | |
| 119 | |
| 120 | def create_result(duration: float) -> WorkloadExecutionResult: |
no test coverage detected