Skip to content

Commit

Permalink
Use client.wait_for_workers instead of wait_for_workers kwarg (#1571
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hendrikmakait authored Oct 24, 2024
1 parent bf231bb commit 35c6058
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions tests/geospatial/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def _(n_workers, env=None, **cluster_kwargs):
if env:
cluster.send_private_envs(env=env)
with cluster.get_client() as client:
# FIXME https://github.com/coiled/platform/issues/103
client.wait_for_workers(n_workers)
with benchmark_all(client):
yield client

Expand Down
1 change: 0 additions & 1 deletion tests/geospatial/test_atmospheric_circulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def test_atmospheric_circulation(
cluster_kwargs={
"workspace": "dask-benchmarks-gcp",
"region": "us-central1",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down
2 changes: 0 additions & 2 deletions tests/geospatial/test_climatology.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def test_rechunk_map_blocks(
cluster_kwargs={
"workspace": "dask-benchmarks-gcp",
"region": "us-central1",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down Expand Up @@ -143,7 +142,6 @@ def test_highlevel_api(
cluster_kwargs={
"workspace": "dask-benchmarks-gcp",
"region": "us-central1",
"wait_for_workers": True,
"idle_timeout": "1h",
},
scale_kwargs={
Expand Down
1 change: 0 additions & 1 deletion tests/geospatial/test_cloud_optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def test_cloud_optimize(
cluster_kwargs={
"workspace": "dask-benchmarks",
"region": "us-west-2",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down
1 change: 0 additions & 1 deletion tests/geospatial/test_rechunking.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def test_era5_rechunking(
cluster_kwargs={
"workspace": "dask-benchmarks-gcp",
"region": "us-central1",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down
1 change: 0 additions & 1 deletion tests/geospatial/test_satellite_filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def test_satellite_filtering(
cluster_kwargs={
"workspace": "dask-benchmarks-azure",
"region": "westeurope",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down
1 change: 0 additions & 1 deletion tests/geospatial/test_zonal_average.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def test_nwm(
cluster_kwargs={
"workspace": "dask-benchmarks",
"region": "us-east-1",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down

0 comments on commit 35c6058

Please sign in to comment.