def work_loop(self):
    while True:
        tiles = self.tiles_queue.get()
        if (tiles is None):
            return
        with self.tile_mgr.session():
            exp_backoff(self.tile_mgr.load_tile_coords, args=(tiles,), max_repeat=100, max_backoff=600, exceptions=(SourceError, IOError), ignore_exceptions=(LockTimeout,))
def work_loop(self):
    while True:
        tiles = self.tiles_queue.get()
        if (tiles is None):
            return
        with self.tile_mgr.session():
            exp_backoff(self.tile_mgr.load_tile_coords, args=(tiles,), max_repeat=100, max_backoff=600, exceptions=(SourceError, IOError), ignore_exceptions=(LockTimeout,))