コード例 #1
0
ファイル: tests.py プロジェクト: SpiritD/sci-wms
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
コード例 #2
0
ファイル: updatecache.py プロジェクト: SpiritD/sci-wms
 def handle(self, *args, **options):
     grid_cache.check_topology_age()