Skip to content
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

add events when initialize Environment #2285

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

keegoo
Copy link
Contributor

@keegoo keegoo commented Jan 11, 2023

Add events when initialize Environment(user_classes=[MyUser], events=events), otherwise the event codes in the example(as following) won't work

# ...
env.events.init.fire(environment=env, runner=runner, web_ui=web_ui)

@keegoo
Copy link
Contributor Author

keegoo commented Jan 11, 2023

This is my first PR to the repo, please feel free to let me know if I missed anything, thanks!

@cyberw
Copy link
Collaborator

cyberw commented Jan 11, 2023

Nice. Thanks!

@cyberw cyberw merged commit 110986b into locustio:master Jan 11, 2023
@xaviergmail
Copy link

I was deep in the rabbit hole wondering why I wasn't getting any stats when running a funky distributed setup. This just saved my bacon, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants