summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2016-01-11 18:32:18 -0800
committerJoshua Harlow <harlowja@yahoo-inc.com>2016-01-11 18:32:28 -0800
commit5916b4c3f2c385c3ecd477b8280742f106604415 (patch)
treefba60fa7717bbb0a84c5f5fa89e200d7bf0a2ebe
parent8e8156c488dea8ae876b112c30e41e60da4f5be7 (diff)
downloadtaskflow-5916b4c3f2c385c3ecd477b8280742f106604415.tar.gz
Add comment as to why we continue when tallying edge decider nay voters
Change-Id: Iaee621e15330979d80285430be97af91934b0357
-rw-r--r--taskflow/engines/action_engine/deciders.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/taskflow/engines/action_engine/deciders.py b/taskflow/engines/action_engine/deciders.py
index 4c4ac9d..cb091e9 100644
--- a/taskflow/engines/action_engine/deciders.py
+++ b/taskflow/engines/action_engine/deciders.py
@@ -135,7 +135,11 @@ class IgnoreDecider(Decider):
history[atom_name] = runtime.storage.get(atom_name)
nay_voters = []
for ed in self._edge_deciders:
- if ed.kind in compiler.ATOMS and ed.from_node.name not in history:
+ if (ed.kind in compiler.ATOMS and
+ # It was an ignored atom (not included in history and the
+ # only way that is possible is via above loop skipping
+ # it...)
+ ed.from_node.name not in history):
continue
if not ed.decider(history=history):
nay_voters.append(ed)