diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-06-03 16:46:22 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-06-03 17:11:28 -0700 |
commit | 5f37aa78abad843f801839e5de13eb9407bd7e8f (patch) | |
tree | 265ce71db738b38b12f9adf79977ddfb9c715a6f /taskflow/engines/action_engine/runtime.py | |
parent | 7b5dad30ed660de6e09ad46152fe26dc13d92abd (diff) | |
download | taskflow-5f37aa78abad843f801839e5de13eb9407bd7e8f.tar.gz |
Make the runner a runtime provided property
The runner should be a component of a runtime
system and as such should be part of the runtime
object as a provided property instead of something
that is constructed outside of the runtime object.
Change-Id: I431a377e2dc4274102a60b6502a2d0d6e08c9556
Diffstat (limited to 'taskflow/engines/action_engine/runtime.py')
-rw-r--r-- | taskflow/engines/action_engine/runtime.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/taskflow/engines/action_engine/runtime.py b/taskflow/engines/action_engine/runtime.py index 146c93a..40e6645 100644 --- a/taskflow/engines/action_engine/runtime.py +++ b/taskflow/engines/action_engine/runtime.py @@ -23,6 +23,7 @@ from taskflow.utils import misc from taskflow.engines.action_engine import analyzer as ca from taskflow.engines.action_engine import executor as ex from taskflow.engines.action_engine import retry_action as ra +from taskflow.engines.action_engine import runner as ru from taskflow.engines.action_engine import task_action as ta @@ -51,6 +52,10 @@ class Runtime(object): return ca.Analyzer(self._compilation, self._storage) @misc.cachedproperty + def runner(self): + return ru.Runner(self, self._task_executor) + + @misc.cachedproperty def completer(self): return Completer(self) |