Commit 54a23841 authored by David Adam's avatar David Adam
Browse files

wait for all backups to complete before producing output

parent 9bd7e2cd
......@@ -81,7 +81,10 @@ if __name__ == '__main__':
concurrent_num = len(hosts)
pool = Pool(concurrent_num)
# Start the work and wait for it to finish
results = [ (host, pool.apply_async(rdiff_backup, (host, )) ) for host in hosts ]
for host, r in results:
print("Backup results for", host['hostname'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment