-
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
On Stop causes the task to continue #1552
Comments
can you add your locust file? |
@masonCaminer I'm super interested in debugging this, as I've had similar issues in the past, but right now I'm unable to reproduce. Can you post your locust file? Also, what "tables" are you talking about? |
This is our project. I can't provide you with the process of pressure testing. What I can provide you is the process and script |
|
What do the Treelab methods call in the end? Is it http calls? If not, you need to make sure they are gevent-friendly, otherwise it will not work |
I had no issues running the following code. There might still be an issue in locust (as I think I've seen it sometimes) but maybe you have run into something that is more related to your particular setup..
|
I use the same principle as you, both functions in fasthttp.py |
The username and password are all test |
locust -f src/loadTest/11_add_core.py --users=5 --spawn-rate=5 --headless --run-time 20s |
I only run 20 seconds, but after 20 seconds it keeps going |
|
You can see grafana and you can see two problems.The first is on_ start time is also included in the total time. The second problem is the above |
I'm in Slack @you |
I have replied now. But you really must try to reproduce this without using your custom client, otherwise I cannot help. |
Describe the bug
If I add a new table concurrently, I click Stop, and then my on_stop method will be executed. On_stop is deleting the table. At this moment, one user will start executing on_stop and the other user will continue to execute task
Expected behavior
Task is no longer executed when on_stop is expected
Actual behavior
The Task is still executed
Steps to reproduce
Environment
The text was updated successfully, but these errors were encountered: