@@ -651,9 +651,31 @@ def execution_groups_start(deployment_group, workflow_id, parameters,
651651 force = force ,
652652 concurrency = concurrency ,
653653 )
654- wait_for_execution_group (
655- client , group , include_logs = True , events_handler = events_logger ,
656- timeout = timeout )
654+ try :
655+ execution = wait_for_execution_group (client , group ,
656+ events_handler = events_logger ,
657+ include_logs = True ,
658+ timeout = timeout ,
659+ logger = logger )
660+ logger .info ("Finished executing workflow {0} on deployment group "
661+ "{1}.\n \n "
662+ "* Run 'cfy events list -g {2}' to retrieve the "
663+ "execution group's events/logs" .format (
664+ workflow_id , deployment_group , execution .id )
665+ )
666+
667+ except ExecutionTimeoutError as e :
668+ logger .info ("Timed out waiting for workflow '{0}' on deployment group "
669+ "'{1}' to end. The execution group may still be running, "
670+ "however, the command-line utility was instructed to wait "
671+ "up to {3} seconds for its completion.\n \n "
672+ "* Run 'cfy executions groups cancel {2}' to cancel the "
673+ "running workflow.\n "
674+ "* Run 'cfy events list -g {2} --tail' to retrieve the "
675+ "execution group's events/logs" .format (
676+ workflow_id , deployment_group , e .execution_id , timeout )
677+ )
678+ raise SuppressedCloudifyCliError ()
657679
658680
659681@groups .command ('cancel' , short_help = 'Cancel an execution group' )
0 commit comments