MCPcopy Create free account
hub / github.com/StackStorm/st2 / run

Method run

st2client/st2client/commands/action.py:1892–1904  ·  view source on GitHub ↗
(self, args, **kwargs)

Source from the content-addressed store, hash-verified

1890
1891 @add_auth_token_to_kwargs_from_cli
1892 def run(self, args, **kwargs):
1893 responses = []
1894 for execution_id in args.ids:
1895 try:
1896 response = self.manager.resume(execution_id)
1897 responses.append([execution_id, response])
1898 except resource.ResourceNotFoundError:
1899 self.print_not_found(execution_id)
1900 raise ResourceNotFoundError(
1901 "Execution with id %s not found." % (execution_id)
1902 )
1903
1904 return responses
1905
1906 @add_auth_token_to_kwargs_from_cli
1907 def run_and_print(self, args, **kwargs):

Callers 1

run_and_printMethod · 0.95

Calls 3

print_not_foundMethod · 0.80
resumeMethod · 0.45

Tested by

no test coverage detected