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

Method pause

st2client/st2client/models/core.py:561–570  ·  view source on GitHub ↗
(self, execution_id, **kwargs)

Source from the content-addressed store, hash-verified

559
560 @add_auth_token_to_kwargs_from_env
561 def pause(self, execution_id, **kwargs):
562 url = "/%s/%s" % (self.resource.get_url_path_name(), execution_id)
563 data = {"status": "pausing"}
564
565 response = self.client.put(url, data, **kwargs)
566
567 if response.status_code != http_client.OK:
568 self.handle_error(response)
569
570 return self.resource.deserialize(parse_api_response(response))
571
572 @add_auth_token_to_kwargs_from_env
573 def resume(self, execution_id, **kwargs):

Callers 2

runMethod · 0.45
test_pauseMethod · 0.45

Calls 5

parse_api_responseFunction · 0.85
get_url_path_nameMethod · 0.80
deserializeMethod · 0.80
putMethod · 0.45
handle_errorMethod · 0.45

Tested by 1

test_pauseMethod · 0.36