-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Unable to stop load from web UI with 1.0.3 #1442
Comments
Hi Team, Any body help on this issue? Let me know if need to modify on above mentioned my python script file. |
Hi Team, Any body looking into it? |
Hi! I ran into a similar (but maybe unrelated issue). Can you try running the locust branch called dont-wait-for-greenlets-to-die-if-forcing ? (just check out that branch and do |
Hmm... I dont think my attempt was very good. I'd look into it more but I'm super busy atm... The issue I have (not sure it is the same one as this) was most easily reproduced by just calling Probably this error was introduced in the refactoring for 1.0. |
Any ideas @heyman ? I think my attempted fix would do more harm than good :) |
I made a better fix (#1448) for my issue (unfortunately I think it is unrelated to this) |
Perhaps the issue is related to the use of tags? (a relatively new feature) Do you still get the problem if you dont use tags? |
I am seeing the same problem, running Locust in distributed in AWS with EC2s. |
We need to narrow it down. Have you tried a super-basic testplan? Are you also using SequentialTaskSet? |
No, I'm using normal TaskSet. |
Hello Team , Any update on stopping feature issue in 1.0.3? |
As I said, we need to narrow it down. It works for me (at least with a basic test plan) so someone who can actually reproduce the issue needs to figure out when it does & doesnt work... |
Alright. I just got some time to test this out. For me, it seems to be tied to using a sleep timer in my on_stop() in my TaskSet. So shutting down my users are just taking longer than expected. I expect them all to stop what they're doing and enter their on_stop right away, effectively stopping their tasks (which does not seem to be the case). This behaviour might actually be expected(?) as I recently added the sleep timer. I've been swamped lately, so it's hard to remember when exactly I started seeing this issue. It might just have been me adding this sleep and then noticing the issue. Can't speak for venkikonda though. This is happening in a local normal run as well, so not only distributed. The reason I'm running a sleep is because my users are sharing a global variable tied to the worker, and I do not want this to reset with the first worker going down if other workers are in the middle of a task. |
Interesting @Trouler . Can you share the most bsaic plan that reproduces the issue and show your locust command line? I’m particularly interested in if you are using —stop-timeout. |
There's probably a lot of unnecessary code in here. But I didn't want to kill it more than I had to.
I am not using --stop-timeout. Testing locally I was not passing any extra arguments, I only ran |
hi! sorry for the lack of response. is this still an issue in latest version? (1.2.3) That test plan is very "special". Can you reproduce it using a more normal one, based on for example HttpUser? I'm guessing it does work for you in headless? (as stopping from web ui is what this ticket is about) |
Hi again! Just came back from vacation. Our service was released during my vacation and as of now we are not doing any kind of load testing. I can't answer you if you've fixed it or not, as I would have to test more, and we don't want to load test in any of our environments atm. |
I did see one strange thing in the original locust file: the Not sure it relates to the issue, but we can hope :) Closing this due to lack of activity. |
@cyberw I still got this issue on 1.3.1 I use SequentialTaskSet if that help |
Interesting. Can you share your locustfile and command line? |
I just ran into this on 1.4.1. It's probably an issue with the code but on the off chance that it isn't, here is a locust file. Command line is |
@mbuotidem In your case it may be related to mqtt. It may not be gevent-friendly (thus blocking the entire python process, so it cannot be stopped). Have you ever seen this issue when testing http? |
Hi Team ,
could you please help on below issue..
Description of issue:
Since upgrading to Locust 1.0.3 I often have difficulty stopping Locust from the web UI when running distributed. I click the Stop button, but the load doesn't actually stop. At best, it dips briefly but then resumes.
Expected behavior:
Load stops almost immediately.
Actual behavior:
It seems slaves stop their load and then rejoin the pool and then have load immediately sent to them again.
Steps to reproduce (for bug reports):
Run Locust distributed with multiple slaves
Begin a large load using the web UI
Wait several minutes after all users hatched
Attempt to stop load using the web UI
import random
from locust import HttpUser, task, SequentialTaskSet, between, tag
class IntranetTasks(SequentialTaskSet):
@tag('login')
@task
def on_start(self):
self.client.post("login.action?login=true", {"username":"***", "password":"})
class WebUser(HttpUser):
wait_time = between(5, 9)
tasks = {IntranetTasks:1}
The text was updated successfully, but these errors were encountered: