You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace --nprocs by --nworkers in the generated job script #559
When I want to create a SLURM cluster and specify process = X in the constructor, by looking at the job script, I see that the command that is run has a flag --nprocs X.
I tried to pass as an extra = ['--nworkers X'], but then from another terminal I saw that my job got kicked from the squeue. And the terminal where I started the program, remains in a "wait state". I created a standalone SLURM script passing both --nprocs and --nworkers, but then I get: ERROR - Both --nprocs and --nworkers were specified. Use --nworkers only.
Request: would it be possible to translate the input of process = in the SLURMCluster constructor to --nworkers, but not --nprocs.
Thanks for opening this issue. This is a bit more general than SlurmCluster and affects every implementation. I actually thought I had opened an issue for this already, which is not the case.
I modified the title of the issue to reflect what should be done. And maybe we should handle the previous kwarg for old Dask version, but I don't think this is really needed.
Activity
guillaumeeb commentedon Jul 19, 2022
Hi @ikabadzhov,
Thanks for opening this issue. This is a bit more general than SlurmCluster and affects every implementation. I actually thought I had opened an issue for this already, which is not the case.
This comes from dask/distributed#5641.
So we should update dask-jobqueue to take this into account.
[-]SLURMCluster modifies a deprecated flag[/-][+]Replace --nprocs by --nworkers in the generated job script[/+]guillaumeeb commentedon Jul 19, 2022
I modified the title of the issue to reflect what should be done. And maybe we should handle the previous kwarg for old Dask version, but I don't think this is really needed.
guillaumeeb commentedon Jul 19, 2022
@ikabadzhov would you like to contribute here?
ikabadzhov commentedon Jul 19, 2022
I took a closer look. I will give it a try now.
Use `--nworkers` in stead of deprecated `--nprocs` in the generated j…
Use `--nworkers` in stead of deprecated `--nprocs` in the generated j…
Use `--nworkers` in stead of deprecated `--nprocs` in the generated j…