Commit Graph

12 Commits

Author SHA1 Message Date
Lars Holmberg 00cda8ce0d Further simplify example 2024-05-25 19:15:39 +02:00
Lars Holmberg 7c176ef427 Simplify semaphore_wait example 2024-05-25 18:35:52 +02:00
tdadela f99e9df700 sort imports 2024-01-17 00:07:29 +01:00
Lars Holmberg 7c0fcc213d Auto format using Black (20.8b1, which includes the magic trailing commas fix). Added black --check to build. 2020-08-27 09:17:42 +02:00
Lars Holmberg eb15f2bf38 Renamed hatch rate to spawn rate. Fixes #1405 2020-08-18 09:18:53 +02:00
Jonatan Heyman 17edbb68fa More "locust" -> "user" renaming 2020-04-22 17:38:39 +02:00
anuj_ 530db29ad7 More renaming. Includes renaming in test and example files as well. 2020-04-20 13:52:22 +12:00
Jonatan Heyman 02ce1665b4 Change how tasks and TaskSets are declared on Locust classes.
* Let users specify tasks directly under a Locust class, just as one would do it on a TaskSet class. These tasks will get the Locust instance as argument when executed.
* Removed Locust.task_set from the public API, and instead let users use either the tasks attribute or the @task decorator.
* Introduce a Locust.abstract boolean attribute. If it's set to True the Locust class is meant to be used as a base class, and users of that type can not be spawned directly from it.
2020-04-01 01:08:07 +02:00
Jonatan Heyman 23f23884cb Update example to use new event API 2020-02-27 20:56:29 +01:00
Jonatan Heyman cc1d379c71 Updated examples files to use new wait_time API 2019-10-24 17:50:19 +02:00
Ryan 84ffbae085 coros to lock per gevent
Module has changed to `gevent.lock`
2019-05-03 10:20:39 -04:00
Jonatan Heyman 6a3594949f Added some random examples that maybe could be useful to someone 2017-09-19 11:54:18 +02:00