summaryrefslogtreecommitdiffstats
path: root/openstack/common/manager.py
diff options
context:
space:
mode:
authorAngus Salkeld <asalkeld@redhat.com>2012-08-14 10:27:06 +1000
committerAngus Salkeld <asalkeld@redhat.com>2012-08-20 20:32:23 +1000
commita6c4b02c206120a5815f08ad7112cb68c3e9c3e5 (patch)
tree0690f1a3c3a2f0391b9e74acbe23a18a4012dc48 /openstack/common/manager.py
parent86a3ed7a173c82422270786fc89cf27cbaccc67e (diff)
downloadoslo-a6c4b02c206120a5815f08ad7112cb68c3e9c3e5.tar.gz
oslo-a6c4b02c206120a5815f08ad7112cb68c3e9c3e5.tar.xz
oslo-a6c4b02c206120a5815f08ad7112cb68c3e9c3e5.zip
Add basic periodic task infrastructure.
So the idea is Manager will inherit from PeriodTasks and create a timer to call run_periodic_tasks(). Part of blueprint service-infrastructure Signed-off-by: Angus Salkeld <asalkeld@redhat.com> Change-Id: I822b8501ad184d0e5885cada1a3d7a847e2ca12c
Diffstat (limited to 'openstack/common/manager.py')
-rw-r--r--openstack/common/manager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/openstack/common/manager.py b/openstack/common/manager.py
index efb783d..647fa93 100644
--- a/openstack/common/manager.py
+++ b/openstack/common/manager.py
@@ -51,8 +51,10 @@ This module provides Manager, a base class for managers.
"""
+from openstack.common import periodic_task
-class Manager(object):
+
+class Manager(periodic_task.PeriodicTasks):
def __init__(self, host):
self.host = host