Repository navigation
Use --nworkers in stead of deprecated --nprocs in the generated job scripts - #560
Conversation
There was a problem hiding this comment.
Thanks @ikabadzhov.
Unfortunately, test will fail as CI is broken, but this is not a problem to merge. You didn't let any nprocs in the code?
Anyway, I'm thinking about one thing: we should probably update the minimum required version of Dask/Distributed. Did you check when nworkers was introduced?
|
I did not leave any I think the deprecation was introduced here https://github.com/dask/distributed/blame/main/distributed/cli/dask_ssh.py#L52 (6 months ago). I am not sure how to map it to the right version. |
|
Ok, so the new option name was introduced in 2022.02.0, see https://distributed.dask.org/en/stable/changelog.html#v2022-02-0. So you should also update required distributed version with this one. As we just released a dask-jobqueue version, I belive it is safe to just do that. |
|
Also, There is on failure related to your PR in the CI: the check of formatting using black. Could you run black on your branch to format things correctly? |
5bf74b6 to
a8b730a
Compare
I just updated the distributed requirement, now it is: dask>=2.23
distributed>=2022.02.0Is this what you mean? Shouldn't they be the same? P.S. Thank you very much @guillaumeeb for your quick comments! |
This is what I mean, but yes I think they should be the same. We may also need to wait for #562 to be in to merge this one, but not sure about it. |
jacobtomlinson
left a comment
There was a problem hiding this comment.
Since switching to CalVer we release dask and distributed in lock step and only guarantee that those releases work together. Generally pinning will mean that installing a more recent version of distributed will upgrade dask to the same version, but to be explicit we might want to bump the minimum dask version here to match distributed.
This is needed to support the `--nworkers` option.
f1b4ed9 to
22f6286
Compare
|
We squash and merge here so please don't squash and force push prematurely, it makes review harder as it's unclear what has changed since the last review. |
guillaumeeb
left a comment
There was a problem hiding this comment.
Anyway, I checked for nprocs occurences, and all are well taken into account. The requirement version of Dask and distributed are OK too, this is good for me.
I still want to advance a bit on #562 before merging.
@jacobtomlinson any other comment.
|
LGTM |
* fix behaviour of `env_extra` for HTCondor Before only environment variables were considered using HTCondor's `Environment =` feature, whereas the parameter description generally says "Other commands to add". If the `Environment =` is needed, one can still use the generic `job_extra` parameter to set it. fixes dask#393 related to dask#323 dask#556 * adapt htcondor tests for new `env_extra` behaviour * adapt htcondor tests for new `env_extra` behaviour "export" is preserved now * docs: made "Moab Deployments" heading the same level as the others * docs: added description of HTCondorCluster + env_extra - example in the docstring - description in "example deployments"" - description in "advanced tops an tricks" * docs: removed the HTCondorCluster section from examples * formatting according to black and flake8
* Drop Python 3.7 * Fix cleanup fixture probem (see fistributed#9137) * Override cleanup distributed fixture, and reconfigure dask-jobqueue when called * Use power of 2 for the memory checks in tests (see dask#7484) * Apply Black * Apply correct version of black... * conda install Python in HTCondor Docker image * Fix HTCondor Dockerfile * Fix PBS Issue * Add a timeout for every wait_for_workers call * Fix HTCondor tests, leave room for scheduling cycle to take place for HTCondor * flake check * debugging HTCondor tests on CI * Flake * reduce negotiator interval for faster job queuing, more debugging logs * move condor command at the right place * always run cleanup step, and print more things on HTCondor * Clean temporary debug and other not necessary modifications * Disable HTCondor CI for now * Import loop_in_thread fixture from distributed * Override method from distributed to make tests pass
|
All green, merging! |
Fix #559.