Comments (4)
You could try the stop_timeout field in the Locust class, which is the number of seconds after which the locust will die. If it's None, it won't timeout.
It will be something like this:
class MyLocust(Locust):
task_set = MyTaskSet
stop_timeout = 10
...
Alternatively, if you must use a command line option, you could use the -c/--clients option which specifies the number of clients to spawn and then stop. And if you can estimate how many clients are created in 'x' minutes in your test, then your good to go.
from locust.
These (here and #78 (comment)) issues are similar and or different. Should they be merged?
from locust.
Although both of us want is for the same purpose, I want it to be as a command line option so that the execution can be automated where as the other person wants it on the web page.
from locust.
Resolved in #656
from locust.
Related Issues (20)
- Integrating with Locust HOT 3
- Locust tasks block when executing queries with pyodbc, but not in ThreadPool
- Use `random.choices` when selecting a task instead of `random.choice` HOT 1
- Users can raise `RescheduleTask` but TaskSets cannot? HOT 1
- TaskSet's `_task_queue` should be a `collections.deque`? HOT 1
- cannot specify task of UserClass when locust run on distributed mode HOT 5
- How to handle API calls in a row in Locust ? HOT 2
- Monkey patching error HOT 3
- Wrong distribution of virtual users by user classes HOT 5
- Running two services test with different volume to be run in parallel HOT 3
- Abnormal Response Time Percentiles Reported After a Load Increase HOT 3
- Custom Threshold Rules HOT 3
- Event spawning_complete fires every time a user is created HOT 5
- S HOT 1
- Remove legacy UI HOT 1
- When there is an error in the FAILURES of the front-end page when there is a worker, there is no escape. HOT 7
- Can you consider json objects to automatically generate pressure test scripts HOT 1
- Add date to charts in web UI HOT 2
- Update FastHttpUser to use geventhttpclients UserAgent instead of our own HOT 1
- Why defining run_time on worker node raises an error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from locust.