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

Locust throwing error when reaching NUM_REQUESTS parameter #47

Closed
Kr1tya3 opened this issue Dec 3, 2012 · 2 comments
Closed

Locust throwing error when reaching NUM_REQUESTS parameter #47

Kr1tya3 opened this issue Dec 3, 2012 · 2 comments

Comments

@Kr1tya3
Copy link

Kr1tya3 commented Dec 3, 2012

Hi,

First of all, thanks for the great product and the new version. I have a test case that makes a set number of requests by specifying the NUM_REQUESTS parameter. After I upgraded to version 0.6 and refactored my test for the new API, I found that when the number of requests reaches the limit, I get an error:
[2012-12-03 17:05:26,358] ERROR/stderr: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/locust/core.py", line 242, in run
self.execute_next_task()
File "/usr/local/lib/python2.7/dist-packages/locust/core.py", line 263, in execute_next_task
self.execute_task(task["callable"], _task["args"], *_task["kwargs"])
File "/usr/local/lib/python2.7/dist-packages/locust/core.py", line 275, in execute_task
task(self, _args, *_kwargs)
File {My script}
File "/usr/local/lib/python2.7/dist-packages/locust/clients.py", line 221, in success
self.locust_request_meta["content_size"],
File "/usr/local/lib/python2.7/dist-packages/locust/events.py", line 27, in fire
handler(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/locust/stats.py", line 270, in on_request_success
raise StopLocust("Maximum number of requests reached")
StopLocust: Maximum number of requests reached

This is the command I used:

locust -f {My script} -H {my site} --no-web -c 30 -r 5 -n 50

Thanks for your help!

@heyman heyman closed this as completed in 92f924c Dec 4, 2012
@heyman
Copy link
Member

heyman commented Dec 4, 2012

Should be fixed now. Thanks for the report!

@heyman
Copy link
Member

heyman commented Dec 4, 2012

I've now released a new version (0.6.1) on PyPI, containing this fix.

pancaprima added a commit to pancaprima/locust that referenced this issue May 14, 2018
…rror

Prima bugfix error dependency at elastic beanstalk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants