Ensure activity and decision tasks cannot timeout on a closed workflow
This commit is contained in:
parent
9c3996ff58
commit
65c95ab5bc
5 changed files with 44 additions and 7 deletions
|
|
@ -45,7 +45,7 @@ class DecisionTask(object):
|
|||
self.state = "COMPLETED"
|
||||
|
||||
def has_timedout(self):
|
||||
if self.state != "STARTED":
|
||||
if self.state != "STARTED" or not self.workflow_execution.open:
|
||||
return False
|
||||
# TODO: handle the "NONE" case
|
||||
start_to_close_timeout = self.started_timestamp + \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue