Skip to content

Commit

Permalink
Merge pull request #108 from efedorov-dart/master
Browse files Browse the repository at this point in the history
Fix threading error leading to boto3 S3 failures
  • Loading branch information
xethorn authored Sep 26, 2024
2 parents 5144c4f + aa3d2b3 commit 83d2ee3
Showing 1 changed file with 9 additions and 2 deletions.
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

0 comments on commit 83d2ee3

Please sign in to comment.