]> khamidou — GitHub mirrors - arcanist.git/commit
Limit `arc branch` to 16 concurrent processes
authorepriestley <git@epriestley.com>
Mon, 7 Jan 2013 16:44:55 +0000 (08:44 -0800)
committerepriestley <git@epriestley.com>
Mon, 7 Jan 2013 16:44:55 +0000 (08:44 -0800)
commit72b2b7b22c9836f527b07a827763b28ba410a255
tree78f0c019db5df31c62b6937533212e77de0f8630
parentcf8d445c9fa098f1c7ee8540d176c08a46e9473e
Limit `arc branch` to 16 concurrent processes

Summary:
Currently, this spawns 125 concurrent processes on my machine, which overflows some limit and gives me an error:

  PHP Warning:  proc_open(): unable to create pipe Too many open files in /INSECURE/devtools/libphutil/src/future/exec/ExecFuture.php on line 491

Instead, limit parallelism to 16. The runtime is approximately the same for me, and dominated by other concerns (conduit calls).

Test Plan: Ran `arc branch` successfully. Ran `arc branch --trace`, observed behavior.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran
Differential Revision: https://secure.phabricator.com/D4336
src/workflow/ArcanistBranchWorkflow.php