Skip to content

Inconsistent cleanup of client.shutdown #364

@Adam-D-Lewis

Description

@Adam-D-Lewis

Bug

I'm not sure if this is an issue with dask-kubernetes only or the distributed library, but I have a KubeCluster which I've connected to with a client. When I run client.shutdown(), the dask-scheduler pod shuts down, but the workers shut down inconsistently, at times all of them remain up.

Workarounds

I'd be interested in a work around if possible to ensure the workers shut down. I don't have direct access to the cluster object (unless it can somehow be recovered from the client object) or I'd run cluster.scale(0) first. Perhaps something using client.run? Or perhaps I could recreate the cluster object with KubeCluster.from_name(cluster_name)? It's not clear how I would find the cluster-name, though. Is that the name of the dask-scheduler pod?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions