Skip to content

worker_spec is set incorrectly #280

Closed

Description

@danpf

@guillaumeeb

Hey I haven't updated dask-jobqueue in a while but after updating i've found a slight bug. that worker_spec (at least in distributed should be a dictionary of ids to workers(ie the len of the current # of workers), not a specification of workers to make (like worker_spec = {'cores': 4, 'memory': '16 GB'})

currently if you have your minimum number of workers at 0, (and possibly anything less than 2, distributed/deploy/adaptive.Adaptive checks

        try:
            current = len(self.cluster.worker_spec)
        except AttributeError:
            current = len(self.cluster.workers)

to get the number of current workers, and so we just forever sit and spin our wheels because Adaptive thinks we have enough workers already (in reality we haven't even scaled yet :o )

it looks like this happened on #184 ?

i can see what you're tying to do, maybe we just need to name jobquque 'worker_spec' to something else?

Activity

  1. guillaumeeb commented on Jun 26, 2019

    @guillaumeeb
    Member

    I believe this is a regression due to dask/distributed#2675 and dask/distributed#2735, the introduction of SpecificationCluster in Dask Distributed.

    I wanted to open an issue for this, but I still didn't find the time to dive into SpecificationCluster changes. Obviously, your issue shows that dask-jobqueue is not compatible with this new interface.

    So the fastest change is probably to rename this attribute. I encourage you to propose a PR for this. In the longer term, we need to be compatible with SpecificationCluster, I'll open an issue for that.

  2. danpf commented on Jul 1, 2019

    @danpf
    ContributorAuthor

    @guillaumeeb
    could you bump the version / make a release so that the conda version gets built?

  3. guillaumeeb commented on Jul 6, 2019

    @guillaumeeb
    Member

    Closed by #282.

    Release done!

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