- # And insert the curent batch
- for idx in range(0, len(places), batch):
- worker = pool.next_free_worker()
- part = places[idx:idx+batch]
- LOG.debug("Processing places: %s", str(part))
- runner.index_places(worker, part)
- progress.add(len(part))
-
- places = next_places
-
- pool.finish_all()
-
- fetcher.wait()
- fetcher.close()
+ LOG.info("Wait time: fetcher: %.2fs, pool: %.2fs",
+ fetcher.wait_time, pool.wait_time)