You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a locustfile like this. The LightSet and HeavySet 's on_stop method is never called.
The background is, I want to do some cleanup works in LightSet and HeavySet respectively.
Is there anyway to do it?
I think the call to on_stop must live in the TaskSet implementation, and not Locust.
Also, with the current implementation on_stop is called even when no --stop-timeout is specified, which I think is wrong (without --stop-timeout specified, it should die as soon as possible).
Describe the bug
I have a locustfile like this. The LightSet and HeavySet 's on_stop method is never called.
The background is, I want to do some cleanup works in LightSet and HeavySet respectively.
Is there anyway to do it?
Expected behavior
The LightSet and HeavySet 's on_stop should be called.
Or there is a workaround to do the cleanup for child TaskSet.
Actual behavior
The LightSet and HeavySet 's on_stop is not called.
I cannot find a way to do it(By looking at Docs and StackOverflow).
Steps to reproduce
Environment settings
The text was updated successfully, but these errors were encountered: