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

Fix threading error leading to boto3 S3 failures #108

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions garcon/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,19 @@ def __init__(self, flow, activities=None):
def run(self):
"""Run the activities.
"""

threads = []
for activity in self.activities:
if (self.worker_activities and
activity.name not in self.worker_activities):
continue
threading.Thread(target=worker_runner, args=(activity,)).start()
thread = threading.Thread(
target=worker_runner,
args=(activity,))
thread.start()
threads.append(thread)

for thread in threads:
thread.join()


class ActivityState:
Expand Down
Loading