Skip to content

Commit

Permalink
limit addons to 10 processes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sponge-Bas committed Oct 3, 2023
1 parent 9bfec73 commit 59ae628
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jujucrashdump/addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def async_commands(command, contexts, timeout=45, shell=False):
args,
]
)
# The juju controller will only allow 10 connections at once
if len(procs) > 9:
procs[-10][0].communicate()
for proc in procs:
proc[0].communicate()
if proc[0].returncode != 0:
Expand Down

0 comments on commit 59ae628

Please sign in to comment.