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

Run individual tasks at the same time #151

Closed
diegows opened this issue May 9, 2014 · 4 comments
Closed

Run individual tasks at the same time #151

diegows opened this issue May 9, 2014 · 4 comments

Comments

@diegows
Copy link

diegows commented May 9, 2014

Hi,
It would be great to have an option to run the same task at the same time. Right now Locust run all the tasks/tasksset at the same time in different greenlets. It would be great to be able to run one task at a time in paralallel. Useful for example if you want to see how every URL perform isolated. To have both options would be great.

I looked at the code and I couldn't find an easy way to hack to do this. If you have ideas, I could help with the code.

Regards,
Diego

@diegows diegows changed the title Run individual tasks in paralallel Run individual tasks at the same time May 9, 2014
@heyman
Copy link
Member

heyman commented May 9, 2014

Hmm, I'm not sure I can see the usefulness in this. What's the typical use-case (why would I want to see how every URL perform isolated, and even if I would, couldn't I just use Apache Bench for that?)?

@diegows
Copy link
Author

diegows commented May 9, 2014

But we can reuse the same tool to do all the tests. We'll have one report
with all the URLs tested isolated, other reports with the URLs tested at
the same time randomdly.

And also we could have an option to run a only a specific tasks. We'll have
all our tests cases in one tool and we'll have more options for debugging.

On Fri, May 9, 2014 at 2:11 PM, Jonatan Heyman notifications@github.comwrote:

Hmm, I'm not sure I can see the usefulness in this. What's the typical
use-case (why would I want to see how every URL perform isolated, and even
if I would, couldn't I just use Apache Bench for that?)?


Reply to this email directly or view it on GitHubhttps://github.com//issues/151#issuecomment-42690043
.

Diego Woitasen

@jsamos
Copy link

jsamos commented May 9, 2014

+1

@justiniso
Copy link
Member

This seems like it's fairly easily solved with multiple locustfiles (one for each url as your case describes). You can just switch with the -f argument.

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

4 participants