summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-03 22:13:10 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-03 22:13:10 +0900
commit17f8bf80403b02262a35362da80a0ec379425eda (patch)
tree88965f9b865dc04b4075d26e3a45506b09b2864f
parentd8c73962fdb6756e5fd299e82d089bb9c349ecef (diff)
downloadbuildstream-17f8bf80403b02262a35362da80a0ec379425eda.tar.gz
main.py: Added --pushers argument
To compliment the existing --fetchers and --builders arguments.
-rwxr-xr-xbuildstream/_frontend/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py
index 2d2d83901..111e10ba9 100755
--- a/buildstream/_frontend/main.py
+++ b/buildstream/_frontend/main.py
@@ -62,6 +62,8 @@ _, _, _, _, host_machine = os.uname()
help="Maximum simultaneous download tasks")
@click.option('--builders', type=click.INT, default=None,
help="Maximum simultaneous build tasks")
+@click.option('--pushers', type=click.INT, default=None,
+ help="Maximum simultaneous upload tasks")
@click.option('--no-interactive', is_flag=True, default=False,
help="Force non interactive mode, otherwise this is automatically decided")
@click.option('--verbose/--no-verbose', default=None,
@@ -490,7 +492,8 @@ class App():
'message_lines': 'log_message_lines',
'on_error': 'sched_error_action',
'fetchers': 'sched_fetchers',
- 'builders': 'sched_builders'
+ 'builders': 'sched_builders',
+ 'pushers': 'sched_pushers'
}
for cli_option, context_attr in override_map.items():
option_value = self.main_options.get(cli_option)