server/sources/pyrorql.py
branchstable
changeset 6309 9f03e3c32676
parent 6130 15fa8425b6e7
child 6427 c8a5ac2d1eaa
equal deleted inserted replaced
6308:c151c730a1ac 6309:9f03e3c32676
   195 
   195 
   196     def init(self):
   196     def init(self):
   197         """method called by the repository once ready to handle request"""
   197         """method called by the repository once ready to handle request"""
   198         interval = int(self.config.get('synchronization-interval', 5*60))
   198         interval = int(self.config.get('synchronization-interval', 5*60))
   199         self.repo.looping_task(interval, self.synchronize)
   199         self.repo.looping_task(interval, self.synchronize)
   200         self.repo.looping_task(self._query_cache.ttl.seconds/10, self._query_cache.clear_expired)
   200         self.repo.looping_task(self._query_cache.ttl.seconds/10,
       
   201                                self._query_cache.clear_expired)
   201 
   202 
   202     def synchronize(self, mtime=None):
   203     def synchronize(self, mtime=None):
   203         """synchronize content known by this repository with content in the
   204         """synchronize content known by this repository with content in the
   204         external repository
   205         external repository
   205         """
   206         """