Skip to content

Replace --nprocs by --nworkers in the generated job script #559

Closed

Description

@ikabadzhov

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.

That currently does not error. However, referring to https://docs.dask.org/en/stable/deploying-ssh.html#cmdoption-dask-ssh-nworkers --nprocs is deprecated.

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.

Activity

  1. guillaumeeb commented on Jul 19, 2022

    @guillaumeeb
    Member

    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.

  2. changed the title [-]SLURMCluster modifies a deprecated flag[/-] [+]Replace --nprocs by --nworkers in the generated job script[/+] on Jul 19, 2022
  3. guillaumeeb commented on Jul 19, 2022

    @guillaumeeb
    Member

    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.

  4. guillaumeeb commented on Jul 19, 2022

    @guillaumeeb
    Member

    @ikabadzhov would you like to contribute here?

  5. ikabadzhov commented on Jul 19, 2022

    @ikabadzhov
    ContributorAuthor

    I took a closer look. I will give it a try now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions