Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
rdiff-manager
Commits
54a23841
Commit
54a23841
authored
Dec 21, 2011
by
David Adam
Browse files
wait for all backups to complete before producing output
parent
9bd7e2cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
rdiff-manager.py
View file @
54a23841
...
...
@@ -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
]
pool
.
close
()
pool
.
join
()
for
host
,
r
in
results
:
print
(
"Backup results for"
,
host
[
'hostname'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment