Skip to content

Commit

Permalink
Merge pull request #13 from gnuoy/fix-queue-growth
Browse files Browse the repository at this point in the history
Fix queues growth when no peers are ready
  • Loading branch information
gboutry authored Oct 16, 2023
2 parents 94ef982 + 8ecb720 commit 6cf0c60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ def grow_queues_onto_unit(self, unit) -> None:
queue_members = [len(q["members"]) for q in api.list_quorum_queues()]
if not queue_members:
logging.debug("No queues found, queue growth skipped")
return
queue_members.sort()
selector = self.get_queue_growth_selector(
queue_members[0], queue_members[-1]
Expand Down

0 comments on commit 6cf0c60

Please sign in to comment.