Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def close(self):
"""
Always close the Dask Client connection.
If connected to *strictly* a LocalCluster, close it down as well.
"""
from .. import dask_utils
self._cluster, self._client = dask_utils.shutdown_cluster_and_client(
self.cluster, self.client
)
def close(self):
"""
Close the connection to the Dask distributed Client.
If this object created a LocalCluster, close it down as well.
"""
from . import dask_utils
self._cluster, self._client = dask_utils.shutdown_cluster_and_client(
self.cluster, self.client
)
def close(self):
"""
Close the connection to the Dask distributed Client.
If this object created a LocalCluster, close it down as well.
"""
from . import dask_utils
self._cluster, self._client = dask_utils.shutdown_cluster_and_client(
self.cluster, self.client
)