Lars Holmberg

Results 237 comments of Lars Holmberg

Perhaps this is related? https://stackoverflow.com/questions/50168647/multiprocessing-causes-python-to-crash-and-gives-an-error-may-have-been-in-progr

Hi! I’m sorry for the lack of response. Is this still an issue for you?

@andrewbaldwin44 can you take a look?

I havent seen this issue myself and havent heard any more than what is in this ticket… maybe the pip version is very old? The version is generated by setuptools_scm..

Hi! Sorry for not responding faster. I'm not sure pyodbc works with gevent?

Hi! It sounds like you are running locust in the same process as the thing you are testing? Dont do that! If necessary, use process.Popen(”locust …”, …) in your application...

Why cant you get the stats in every second? Maybe you can do `gevent.spawn(NewOnLiveStats(on_live_stats), self)` in the `test_start` event handler? (idk what NewOnLiveStats is though :)

Hmm... I think what you want is just to wrap the calls in a subclass. See the subclasses at the end of this file for example: https://github.com/locustio/locust/blob/63bfdc7a6d7bab2c8c38b198d6e27011a12adfa1/examples/rest.py#L78

If you just want to set default headers in HttpUser, you can try `self.client.headers = {'user-agent': 'Mozilla/5.0 ...'} ` (havent tested it myself)

Hi! There's a ton of stuff going on in your locsustfile :) Can you remove everything that isnt relevant to your problem? Simplify it to something like: ``` class AuthUser(UserMixin):...