def wait_on_cache(self): #self.client.get('/update') grid_cache.check_topology_age() c = 0 while (not os.path.exists(os.path.join(cache_path, "test.nc"))) and (c < 5): sleep(3) print "not nc" c = c + 1 pass
def handle(self, *args, **options): grid_cache.check_topology_age()