Making stop condition optional by using a flag (#113)

* apply stop condition flag (default: ignore the stop condition)
This commit is contained in:
Gal Leibovich authored and Gal Novik committed 2018-11-18 13:37:39 +02:00
1 parent 449bcfb4e1
commit 9fd4d55623
3 files changed
+18 -6

No files matched your search

+1 -1
View File
@@ -669,4 +669,4 @@ class GraphManager(object):
self.memory_backend = get_memory_backend(self.agent_params.memory.memory_backend_params)
def should_stop(self) -> bool:
return all([manager.should_stop() for manager in self.level_managers])
return self.task_parameters.apply_stop_condition and all([manager.should_stop() for manager in self.level_managers])