Skip to content

Commit

Permalink
Set master state to "spawning" before waiting for dispatch greenlets
Browse files Browse the repository at this point in the history
  • Loading branch information
mboutet committed Nov 17, 2020
1 parent ac94c7a commit 6396675
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,9 @@ def start(self, user_count: int, spawn_rate: float, **kwargs):
)
)
logger.debug("Sending spawn message to %i client(s)" % len(dispatch_greenlets))
self.update_state(STATE_SPAWNING)
dispatch_greenlets.join()

self.update_state(STATE_SPAWNING)

def stop(self):
if self.state not in [STATE_INIT, STATE_STOPPED, STATE_STOPPING]:
logger.debug("Stopping...")
Expand Down

0 comments on commit 6396675

Please sign in to comment.