def _start(self, update_cmd):
        """Start the long running operation.
        On completion, runs any callbacks.

        :param callable update_cmd: The API reuqest to check the status of
         the operation.
        """
        try:
            self._poll(update_cmd)

        except BadStatus:
            self._operation.status = 'Failed'
            self._exception = CloudError(self._response)

        except BadResponse as err:
            self._operation.status = 'Failed'
            self._exception = CloudError(self._response, str(err))

        except OperationFailed:
            self._exception = CloudError(self._response)

        except Exception as err:
            self._exception = err

        finally:
            self._done.set()

        callbacks, self._callbacks = self._callbacks, []
        while callbacks:
            for call in callbacks:
                call(self._operation)
            callbacks, self._callbacks = self._callbacks, []
def _start ( self , update_cmd ) : try : self . _poll ( update_cmd ) except BadStatus : self . _operation . status = 'Failed' self . _exception = CloudError ( self . _response ) except BadResponse as err : self . _operation . status = 'Failed' self . _exception = CloudError ( self . _response , str ( err ) ) except OperationFailed : self . _exception = CloudError ( self . _response ) except Exception as err : self . _exception = err finally : self . _done . set ( ) callbacks , self . _callbacks = self . _callbacks , [ ] while callbacks : for call in callbacks : call ( self . _operation ) callbacks , self . _callbacks = self . _callbacks , [ ]
Start the long running operation.
        On completion, runs any callbacks.

        :param callable update_cmd: The API reuqest to check the status of
         the operation.