mirror of
https://github.com/Watchful1/PushshiftDumps.git
synced 2025-07-24 15:15:24 -04:00
Wait here too
This commit is contained in:
parent
d7751783a9
commit
15d88a138f
2 changed files with 2 additions and 2 deletions
|
@ -238,7 +238,7 @@ if __name__ == '__main__':
|
|||
# start the workers
|
||||
with multiprocessing.Pool(processes=min(args.processes, len(files_to_process))) as pool:
|
||||
workers = pool.starmap_async(process_file, [(file, queue, args.field) for file in files_to_process], chunksize=1, error_callback=log.info)
|
||||
while not workers.ready():
|
||||
while not workers.ready() or not queue.empty():
|
||||
# loop until the workers are all done, pulling in status messages as they are sent
|
||||
file_update = queue.get()
|
||||
if file_update.error_message is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue