fulltext/services/preview/preview.py
def is_available(self, **kwargs: Any) -> bool:
        """Check our connection to the filesystem service."""
        timeout: float = kwargs.get('timeout', 0.2)
        try:
            response = self.request('head', '/status', timeout=timeout)
        except Exception as e:
            logger.error('Encountered error calling filesystem: %s', e)
            return False
        return bool(response.status_code == status.OK)
Check our connection to the filesystem service.
Check our connection to the filesystem service.
Check our connection to the filesystem service .
def is_available(self, **kwargs: Any) -> bool:
        timeout: float = kwargs.get('timeout', 0.2)
        try:
            response = self.request('head', '/status', timeout=timeout)
        except Exception as e:
            logger.error('Encountered error calling filesystem: %s', e)
            return False
        return bool(response.status_code == status.OK)
def is_available ( self , ** kwargs : Any ) -> bool : timeout : float = kwargs . get ( 'timeout' , 0.2 ) try : response = self . request ( 'head' , '/status' , timeout = timeout ) except Exception as e : logger . error ( 'Encountered error calling filesystem: %s' , e ) return False return bool ( response . status_code == status . OK )
Check our connection to the filesystem service.
Check our connection to the filesystem service .
"""Check our connection to the filesystem service."""
self
kwargs
Any