Skip to content
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

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

[DRAFT] Sync AWS accounts in parallel #1138

wants to merge 9 commits into from

Conversation

achantavy
Copy link
Contributor

@achantavy achantavy commented Mar 14, 2023

Depends on #1136.

common_job_parameters,
aws_requested_syncs,
aws_best_effort_mode,
).result()

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants