diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini index ad5d7ec5505..85f71e559c1 100644 --- a/sdks/python/tox.ini +++ b/sdks/python/tox.ini @@ -116,8 +116,9 @@ commands = bash {toxinidir}/scripts/run_pytest.sh {envname} {toxinidir}/apache_beam/runners/dask/ [testenv:py{39,310,311,312}-win-dask] +# use the tight range since the latest dask requires cloudpickle 3.0 commands_pre = - pip install 'distributed>=2024.4.2' 'dask>=2024.4.2' + pip install 'distributed>=2024.4.2,<2024.9.0' 'dask>=2024.4.2,<2024.9.0' commands = python apache_beam/examples/complete/autocomplete_test.py bash {toxinidir}/scripts/run_pytest.sh {envname} {toxinidir}/apache_beam/runners/dask/