Skip to content

Commit

Permalink
locustio#1884 renaming as suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
tyge68 committed Sep 15, 2021
1 parent 268e8ac commit 224ff27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def on_quitting(environment, **kw):

self.environment.events.quitting.add_listener(on_quitting)

def rebalancingEnabled(self):
def rebalancing_enabled(self) -> bool:
return self.environment.parsed_options and self.environment.parsed_options.enable_rebalancing

@property
Expand Down Expand Up @@ -883,7 +883,7 @@ def client_listener(self):
"Client %r reported as ready. Currently %i clients ready to swarm."
% (worker_node_id, len(self.clients.ready + self.clients.running + self.clients.spawning))
)
if self.rebalancingEnabled() and self.state == STATE_RUNNING and self.spawning_completed:
if self.rebalancing_enabled() and self.state == STATE_RUNNING and self.spawning_completed:
self.start(self.target_user_count, self.spawn_rate)
# emit a warning if the worker's clock seem to be out of sync with our clock
# if abs(time() - msg.data["time"]) > 5.0:
Expand Down

0 comments on commit 224ff27

Please sign in to comment.