def stop(self):
        '''
        Shuts down the cluster.

        This cluster object can be restarted, by calling `start`.
        '''
        if not self.is_running(_silent=True):
            raise RuntimeWarning('Can not stop cluster, this cluster is not running.')
        _ec2_execution._stop_cluster(self.cluster_controller)
        self.cluster_controller = None
        self._save()
Example #2
0
    def stop(self):
        '''
        Shuts down the cluster.

        This cluster object can be restarted, by calling `start`.
        '''
        if not self.is_running(_silent=True):
            raise RuntimeWarning(
                'Can not stop cluster, this cluster is not running.')
        _ec2_execution._stop_cluster(self.cluster_controller)
        self.cluster_controller = None
        self._save()