How to use the aicsimageio.dask_utils.shutdown_cluster_and_client function in aicsimageio

To help you get started, we’ve selected a few aicsimageio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AllenCellModeling / aicsimageio / aicsimageio / readers / reader.py View on Github external
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
        )
github AllenCellModeling / aicsimageio / aicsimageio / aics_image.py View on Github external
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
        )
github AllenCellModeling / aicsimageio / aicsimageio / aics_image.py View on Github external
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
        )