From 6810973b768318ab1017d83b884a9dc574cf1856 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Barth Date: Fri, 23 Oct 2015 09:05:52 +0200 Subject: [PATCH] Update obsolete comment about SWF decisions completion --- moto/swf/models/workflow_execution.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moto/swf/models/workflow_execution.py b/moto/swf/models/workflow_execution.py index 8d297975a..164217b9a 100644 --- a/moto/swf/models/workflow_execution.py +++ b/moto/swf/models/workflow_execution.py @@ -181,7 +181,8 @@ class WorkflowExecution(object): dt.start(evt.event_id) def complete_decision_task(self, task_token, decisions=None, execution_context=None): - # TODO: check if decision can really complete in case of malformed "decisions" + # In case of a malformed or invalid decision task, SWF will raise an error and + # it won't perform any of the decisions in the decision set. self.validate_decisions(decisions) dt = self._find_decision_task(task_token) evt = self._add_event(