Skip to content

extra conda packages kwarg fails with dask gateway #99

@dgergel

Description

@dgergel

When passing the extra_conda_packages kwarg, e.g.
client, cluster = rhgk.get_standard_cluster(extra_conda_packages='cfgrib'), the following error occurs:

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-2-eb13a78ebd60> in <module>
----> 1 client, cluster = rhgk.get_standard_cluster(extra_conda_packages='cfgrib')
      2 # cluster.scale(10)

/srv/conda/envs/notebook/lib/python3.8/site-packages/rhg_compute_tools/kubernetes.py in get_standard_cluster(*args, **kwargs)
    542                 "trying to pass worker name, use the ``name`` kwarg."
    543             )
--> 544         return _get_cluster_dask_gateway(profile="standard", **kwargs)
    545     return _get_cluster_dask_kubernetes(*args, scaling_factor=1, **kwargs)
    546 

/srv/conda/envs/notebook/lib/python3.8/site-packages/rhg_compute_tools/kubernetes.py in _get_cluster_dask_gateway(**kwargs)
    181             }
    182         elif k not in list(default_options.keys()) + ["tag"]:
--> 183             raise KeyError(f"{k} not allowed as a kwarg when using dask-gateway")
    184 
    185     if "worker_image" in new_kwargs and "tag" in new_kwargs:

KeyError: 'extra_conda_packages not allowed as a kwarg when using dask-gateway'

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