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

on_start function calls for every hatch #529

Closed
gunesmes opened this issue Feb 6, 2017 · 4 comments
Closed

on_start function calls for every hatch #529

gunesmes opened this issue Feb 6, 2017 · 4 comments

Comments

@gunesmes
Copy link

gunesmes commented Feb 6, 2017

I have preparing test data in on_start function but it is calling for every hatch so it does the same jobs multiple times.

@cgoldberg
Copy link
Member

that is correct. what is your question?

@gunesmes
Copy link
Author

gunesmes commented Feb 6, 2017

No need to run multible times, it should be run for the first hatch. This seems like a bug.

@cgoldberg
Copy link
Member

No need to run multible times, it should be run for the first hatch

it's designed to run the on_start function once per each locust when it starts. It is useful for stuff like logging in before tasks are executed.

This seems like a bug

it's not. It is functioning as designed.

@gunesmes
Copy link
Author

gunesmes commented Feb 7, 2017

So we can create locust but ignore on_start function for multiple run.

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

No branches or pull requests

2 participants