Skip to content

Commit

Permalink
CH-62 #676 fix concurrent servers quota count
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Mar 6, 2023
1 parent 4ed1e54 commit 637a70a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def change_pod_manifest(self: KubeSpawner):
if quota_ws_open:
# get user number of pods running
servers = [s for s in self.user.all_spawners(include_default=True)]
num_of_pods = len(s for s in servers if s.active)
num_of_pods = len([s for s in servers if s.active])
if num_of_pods > int(quota_ws_open):
raise PodSpawnException(
"You reached your quota of {} concurrent servers."
Expand Down

0 comments on commit 637a70a

Please sign in to comment.