(max_computes=0)
| 268 | |
| 269 | |
| 270 | def raise_if_dask_computes(max_computes=0): |
| 271 | # return a dummy context manager so that this can be used for non-dask objects |
| 272 | if not has_dask: |
| 273 | return nullcontext() |
| 274 | scheduler = CountingScheduler(max_computes) |
| 275 | return dask.config.set(scheduler=scheduler) |
| 276 | |
| 277 | |
| 278 | flaky = pytest.mark.flaky |
searching dependent graphs…