Skip to content

Commit

Permalink
update docs about --stop-timeout (it has supported time spans for a w…
Browse files Browse the repository at this point in the history
…hile now)
  • Loading branch information
cyberw committed Dec 23, 2022
1 parent 5bc1901 commit 8506534
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/running-without-web-ui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ Locust will shut down once the time is up. Time is calculated from the start of
Allow tasks to finish their iteration on shutdown
-------------------------------------------------

By default, locust will stop your tasks immediately (without even waiting for requests to finish).
If you want to allow all running tasks to finish their iteration, you can use ``-s/--stop-timeout <seconds>``.
By default, Locust will stop your tasks immediately (without even waiting for requests to finish).
If you want to give running tasks some time to finish their iteration specify ``-s/--stop-timeout``.

.. code-block:: console
$ locust --headless --run-time 1h30m --stop-timeout 10
$ locust --headless --run-time 1h30m --stop-timeout 10s
.. _running-distributed-without-web-ui:

Expand Down

0 comments on commit 8506534

Please sign in to comment.