Add SWF endpoint TerminateWorkflowExecution

This commit is contained in:
Jean-Baptiste Barth 2015-11-01 21:55:07 +01:00
commit 96d6bb056b
10 changed files with 212 additions and 16 deletions

View file

@ -287,3 +287,16 @@ class SWFResponse(BaseResponse):
task_token, reason=reason, details=details
)
return ""
def terminate_workflow_execution(self):
domain_name = self._params["domain"]
workflow_id = self._params["workflowId"]
child_policy = self._params.get("childPolicy")
details = self._params.get("details")
reason = self._params.get("reason")
run_id = self._params.get("runId")
self.swf_backend.terminate_workflow_execution(
domain_name, workflow_id, child_policy=child_policy,
details=details, reason=reason, run_id=run_id
)
return ""