Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple Runner and Locust code by introducing Locust.start and Locust.stop methods #1306

Merged
merged 6 commits into from
Apr 3, 2020

Commits on Apr 2, 2020

  1. Decouple Runner and Locust code by introducing Locust.start and Locus…

    …t.stop methods.
    
    The start() and stop() methods takes a gevent.pool.Group instance, and is responsible for spawning and killing a greenlet running the Locust instance's run() method. With this change the runner does no longer need to keep track of the state of the individual Locust instances.
    heyman committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    4b84b10 View commit details
    Browse the repository at this point in the history
  2. Fix issue where Locust user would sleep even when state was set to LO…

    …CUST_STATE_STOPPING if TaskSet.interrupt() were called with reschedule argument set to False.
    heyman committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    fa91efa View commit details
    Browse the repository at this point in the history
  3. Check if Locust should stop immediately after wait time to avoid pote…

    …ntial race condition from preventing locust user to die
    heyman committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    a896a01 View commit details
    Browse the repository at this point in the history
  4. Fix typo

    heyman committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    c15eead View commit details
    Browse the repository at this point in the history
  5. Add on_stop and on_start stub methods to Locust and TaskSet that can …

    …be implemented by end-user test scripts.
    
    Fix bug where the TaskSet.on_stop method weren't called for nested TaskSets (only called for the first TaskSet immediately under the Locust). Should fix #1206.
    heyman committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    27151cd View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2020

  1. Configuration menu
    Copy the full SHA
    07d1ee6 View commit details
    Browse the repository at this point in the history