parameters: (self)
docstring: Call all kraken instances (as found in the instances dir) and store it's metadata
docstring_summary: Call all kraken instances (as found in the instances dir) and store it's metadata
docstring_tokens: Call all kraken instances ( as found in the instances dir ) and store it s metadata
function: def init_kraken_instances(self):
          """
          Call all kraken instances (as found in the instances dir) and store it's metadata
          """
          futures = []
          purge_cache_needed = False
          for instance in self.instances.values():
              if not instance.is_initialized:
                  futures.append(gevent.spawn(instance.init))
  
          gevent.wait(futures)
          for future in futures:
              # we check if an instance needs the cache to be purged
              if future.get():
                  self._clear_cache()
                  break
function_tokens: def init_kraken_instances ( self ) : futures = [ ] purge_cache_needed = False for instance in self . instances . values ( ) : if not instance . is_initialized : futures . append ( gevent . spawn ( instance . init ) ) gevent . wait ( futures ) for future in futures : # we check if an instance needs the cache to be purged if future . get ( ) : self . _clear_cache ( ) break