locust icon indicating copy to clipboard operation
locust copied to clipboard

Exception: Tried to stop User in an unexpected state: stopping. This should never happen.

Open zifter opened this issue 9 months ago • 2 comments

Prerequisites

Description

At the end of test lots of exceptions generated like this.

Traceback (most recent call last): File "src/gevent/greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.10/site-packages/locust/user/users.py", line 208, in stop

Maybe it's important, that LOCUST_STOP_TIMEOUT set to 600

Why we try to stop user twice?

Command line

--master --enable-rebalancing --skip-log-setup --class-picker

Locustfile contents

-

Python version

3.10

Locust version

2.28

Operating system

COS

zifter avatar May 28 '24 08:05 zifter