Commit 94b6bc18 authored by Daniele Venzano's avatar Daniele Venzano 🏇

Add option to start command.

-r in combination with -s will wait for the zapp to be running and then exit. Useful to measure queuing times.
parent e8e60ecb
Pipeline #16319 passed with stages
in 2 minutes and 39 seconds
......@@ -109,7 +109,10 @@ def exec_start_cmd(api: ZoeAPI, args):
old_status = current_status
if current_status == 'running':
if args.running:
print('Execution running')
monitor_service_id = None
for service_id in execution['services']:
service =
......@@ -217,6 +220,7 @@ def process_arguments() -> Tuple[ArgumentParser, Namespace]:
argparser_exec_start = subparser.add_parser('start', help="Start an application")
argparser_exec_start.add_argument('-s', '--synchronous', action='store_true', help="Do not detach, wait for execution to finish, print main service log")
argparser_exec_start.add_argument('-r', '--running', action='store_true', help="Do not detach, wait for execution to start (state: running)")
argparser_exec_start.add_argument('name', help="Name of the execution")
argparser_exec_start.add_argument('jsonfile', type=FileType("r"), help='Application description')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment