pypet/utils/mpwrappers.py
def release(self):
        """Releases lock"""
        # self.start(test_connection=False)
        str_response, retries = self._req_rep_retry(LockerServer.UNLOCK)
        response = str_response.split(LockerServer.DELIMITER)
        if response[0] == LockerServer.RELEASED:
            pass  # Everything is fine
        elif response[0] == LockerServer.RELEASE_ERROR and retries > 0:
            # Message was sent but Server response was lost and we tried again
            self._logger.error(str_response + '; Probably due to retry')
        else:
            raise RuntimeError('Response `%s` not understood' % response)
def release(self):
        """Releases lock"""
        # self.start(test_connection=False)
        str_response, retries = self._req_rep_retry(LockerServer.UNLOCK)
        response = str_response.split(LockerServer.DELIMITER)
        if response[0] == LockerServer.RELEASED:
            pass  # Everything is fine
        elif response[0] == LockerServer.RELEASE_ERROR and retries > 0:
            # Message was sent but Server response was lost and we tried again
            self._logger.error(str_response + '; Probably due to retry')
        else:
            raise RuntimeError('Response `%s` not understood' % response)
def release ( self ) : # self.start(test_connection=False) str_response , retries = self . _req_rep_retry ( LockerServer . UNLOCK ) response = str_response . split ( LockerServer . DELIMITER ) if response [ 0 ] == LockerServer . RELEASED : pass # Everything is fine elif response [ 0 ] == LockerServer . RELEASE_ERROR and retries > 0 : # Message was sent but Server response was lost and we tried again self . _logger . error ( str_response + '; Probably due to retry' ) else : raise RuntimeError ( 'Response `%s` not understood' % response )
Releases lock
Releases lock