-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRAFT] Sync AWS accounts in parallel #1138
base: master
Are you sure you want to change the base?
Conversation
common_job_parameters, | ||
aws_requested_syncs, | ||
aws_best_effort_mode, | ||
).result() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this will wait for each execution in turn (consecutive execution) as the call to the result()
method of the Future returned by executor.submit
will wait for the future to complete.
To get concurrent execution I believe you would want to submit the sync functions in a loop as is done here, collect the returned Future objects in a list and then call concurrent.futures.wait
to wait for all of the syncs to be complete (or iterate over concurrent.futures.as_completed
if you want to report sync statuses as they complete).
Depends on #1136.