parameters: (self)
return_statement: return False
docstring: Get and store variables of the instance.
          Returns True if we need to clear the cache, False otherwise.
docstring_summary: Get and store variables of the instance.
          Returns True if we need to clear the cache, False otherwise.
docstring_tokens: Get and store variables of the instance . Returns True if we need to clear the cache False otherwise .
function: def init(self):
          """
          Get and store variables of the instance.
          Returns True if we need to clear the cache, False otherwise.
          """
          pub_date = self.publication_date
          req = request_pb2.Request()
          req.requested_api = type_pb2.METADATAS
          request_id = "instance_init"
          try:
              # we use _send_and_receive to avoid the circuit breaker, we don't want fast fail on init :)
              resp = self._send_and_receive(req, request_id=request_id, timeout=1000, quiet=True)
              # the instance is automatically updated on a call
              if self.publication_date != pub_date:
                  return True
          except DeadSocketException:
              # we don't do anything on error, a new session will be established to an available kraken on
              # the next request. We don't want to purge all our cache for a small error.
              logging.getLogger(__name__).debug('timeout on init for %s', self.name)
          return False
function_tokens: def init ( self ) : pub_date = self . publication_date req = request_pb2 . Request ( ) req . requested_api = type_pb2 . METADATAS request_id = "instance_init" try : # we use _send_and_receive to avoid the circuit breaker, we don't want fast fail on init :) resp = self . _send_and_receive ( req , request_id = request_id , timeout = 1000 , quiet = True ) # the instance is automatically updated on a call if self . publication_date != pub_date : return True except DeadSocketException : # we don't do anything on error, a new session will be established to an available kraken on # the next request. We don't want to purge all our cache for a small error. logging . getLogger ( __name__ ) . debug ( 'timeout on init for %s' , self . name ) return False