From f03dec766dc18e4922ff693568e885ae46b374d8 Mon Sep 17 00:00:00 2001 From: Aanand Prasad Date: Wed, 15 Jul 2015 16:43:43 +0100 Subject: [PATCH] Rename max workers env var and fix docs Signed-off-by: Aanand Prasad --- compose/utils.py | 2 +- docs/cli.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/utils.py b/compose/utils.py index cc7bd5dd..6dc751c6 100644 --- a/compose/utils.py +++ b/compose/utils.py @@ -15,7 +15,7 @@ def parallel_execute(command, containers, doing_msg, done_msg, **options): """ Execute a given command upon a list of containers in parallel. """ - max_workers = os.environ.get('MAX_WORKERS', DEFAULT_MAX_WORKERS) + max_workers = os.environ.get('COMPOSE_MAX_WORKERS', DEFAULT_MAX_WORKERS) def container_command_execute(container, command, **options): log.info("{} {}...".format(doing_msg, container.name)) diff --git a/docs/cli.md b/docs/cli.md index ce0f0447..6b04f21d 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -193,7 +193,7 @@ the daemon. Configures the path to the `ca.pem`, `cert.pem`, and `key.pem` files used for TLS verification. Defaults to `~/.docker`. -### DEFAULT\_MAX\_WORKERS +### COMPOSE\_MAX\_WORKERS Configures the maximum number of worker threads to be used when executing commands in parallel. Only a subset of commands execute in parallel, `stop`,