Add SWF endpoint RespondActivityTaskFailed

This commit is contained in:
Jean-Baptiste Barth 2015-10-28 12:29:57 +01:00
commit fd12e317f8
7 changed files with 100 additions and 8 deletions

View file

@ -278,3 +278,12 @@ class SWFResponse(BaseResponse):
task_token, result=result
)
return ""
def respond_activity_task_failed(self):
task_token = self._params["taskToken"]
reason = self._params.get("reason")
details = self._params.get("details")
self.swf_backend.respond_activity_task_failed(
task_token, reason=reason, details=details
)
return ""