summaryrefslogtreecommitdiff
path: root/taskflow/engines/worker_based/engine.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-05-04 21:29:45 -0700
committerJoshua Harlow <harlowja@gmail.com>2014-05-04 21:31:43 -0700
commit50696ac555087d2ffecc5fc3f39e3f4cda89103c (patch)
tree1b7ad576570a62d4431e06cba2ca0de7362dc9b1 /taskflow/engines/worker_based/engine.py
parent8ebce5b027046477a276111f20f9bc6dd135cc59 (diff)
downloadtaskflow-50696ac555087d2ffecc5fc3f39e3f4cda89103c.tar.gz
Engine _cls postfix is not correct
Some of the time these attributes are types but other times they are functions, to avoid the confusion of naming these with a '_cls' postfix move to having a '_factory' postfix since these attributes generate other objects (which is what factories do). Change-Id: I73edd0c794223d719fbfbd0608c985cb335c8c26
Diffstat (limited to 'taskflow/engines/worker_based/engine.py')
-rw-r--r--taskflow/engines/worker_based/engine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/taskflow/engines/worker_based/engine.py b/taskflow/engines/worker_based/engine.py
index a552222..e92e73f 100644
--- a/taskflow/engines/worker_based/engine.py
+++ b/taskflow/engines/worker_based/engine.py
@@ -34,9 +34,9 @@ class WorkerBasedActionEngine(engine.ActionEngine):
:keyword transport_options: transport specific options
"""
- _storage_cls = t_storage.SingleThreadedStorage
+ _storage_factory = t_storage.SingleThreadedStorage
- def _task_executor_cls(self):
+ def _task_executor_factory(self):
if self._executor is not None:
return self._executor
return executor.WorkerTaskExecutor(