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 batchLimit option #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add batchLimit option #35

wants to merge 1 commit into from

Conversation

artch
Copy link

@artch artch commented Feb 4, 2015

When running the task against big amount of .haml files it creates the same amount of async processes. Say, 1000 files spawns 1000 ruby processes when used with ruby command. That easily consumes all the available machine's memory and fails.

This PR adds support of async.eachLimit function which limits the concurrent amount of async processes; and batchLimit option to configure it.

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.

1 participant