Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make sure locusts are spawned in local run otherwise it will exit une…
…xpectedly
- Loading branch information
2e148ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@delulu Do you remember the reason for this
sleep()
call? I can't seem to make it break without it.2e148ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a typo in comment, it should be "make sure locusts are spawned".
In local run and non-web mode, the main_greenlet is pointing to runners.locust_runner.greenlet.
If the locusts are not yet spawned, in the execution of code lines below main_greenlet.join() will complete, then shutdown(code=code)
will be called.
locust/locust/main.py
Lines 571 to 575 in 2e148ba
2e148ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks!