Unexpected dask argument

I get the following error when having a dask command in a SLURM script. The following is the script section that is erroring and the corresponding error. I am not sure how to continue.

dask worker --scheduler-file “$SCHED_FILE” --nprocs 1 --nthreads 32 --memory-limit auto --interface ib0

Usage: dask worker [OPTIONS] [SCHEDULER] [PRELOAD_ARGV]…
Try ‘dask worker -h’ for help.

Error: Got unexpected extra argument: (1)

Hi @sar49, welcome to Dask community!

I think the problem comes from --nprocs which doesn’t exist anymore. Could you try the command by replacing it with --nworkers?

But I have to admit there is also probably a problem in the error message, I’ll try to look at that too!

I ended up creating an issue, because I’m not sure how to best handle this case.