def Run(self, args): """Starts the wait on the completion of the execution.""" hooks.print_default_location_warning(None, args, None) api_version = workflows.ReleaseTrackToApiVersion(self.ReleaseTrack()) execution_ref = flags.ParseExecution(args) client = workflows.WorkflowExecutionClient(api_version) return client.WaitForExecution(execution_ref)
def Run(self, args): """Execute a workflow and wait for the completion of the execution.""" hooks.print_default_location_warning(None, args, None) api_version = workflows.ReleaseTrackToApiVersion(self.ReleaseTrack()) workflow_ref = flags.ParseWorkflow(args) client = workflows.WorkflowExecutionClient(api_version) execution = client.Create(workflow_ref, args.data) cache.cache_execution_id(execution.name) execution_ref = resources.REGISTRY.Parse( execution.name, collection=EXECUTION_COLLECTION) return client.WaitForExecution(execution_ref)
def Run(self, args): api_version = workflows.ReleaseTrackToApiVersion(self.ReleaseTrack()) client = workflows.WorkflowExecutionClient(api_version) return client.Get(None)
def Run(self, args): """Starts the wait on the completion of the execution.""" api_version = workflows.ReleaseTrackToApiVersion(self.ReleaseTrack()) client = workflows.WorkflowExecutionClient(api_version) return client.WaitForExecution(None)