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

Limiting the amount of parallelism #159

Closed
joelzimmer opened this issue Aug 6, 2018 · 5 comments · Fixed by #214
Closed

Limiting the amount of parallelism #159

joelzimmer opened this issue Aug 6, 2018 · 5 comments · Fixed by #214

Comments

@joelzimmer
Copy link

How does concurrently decide how many processes to spawn? We have CI machines that have a lot of cores, but only have a small number available to work on. Can we limit the number of processes that are active at a given time?

@gustavohenke
Copy link
Member

Hello @joelzimmer,
Unfortunately there is no way to limit the parallelism. concurrently just spawns all of the passed commands at the same time.

However, I'm open to suggestions on how to tackle this, taking in consideration existing features such as restarting, killing other processes, etc.

@joelzimmer
Copy link
Author

@gustavohenke This is no longer a problem for us anymore (we're using slightly different build tactics in an upgraded system), but I'd look at parallel-webpack for inspiration - it'd be nice to pass in a limit of how many processes run and then queue which processes run.

@callumlocke
Copy link

Another use case for this: temporarily setting the limit to 1 (i.e. to run all commands in series) while you're trying to debug something, to make it easier to read the stdout logs.

@gustavohenke
Copy link
Member

Duplicate of #175

@gustavohenke
Copy link
Member

Published v5.2.0 with a --max-processes flag 🚢

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

Successfully merging a pull request may close this issue.

3 participants