summaryrefslogtreecommitdiffstats
path: root/nova/cells
diff options
context:
space:
mode:
authorMichael Still <mikal@stillhq.com>2013-04-28 16:51:22 +1000
committerMichael Still <mikal@stillhq.com>2013-05-01 08:45:09 +1000
commit01b0f6554be87a0664e74c63817c3034ee40a6ac (patch)
tree7024475a5cb85c767d0d7d784d2508a5c51706c7 /nova/cells
parentb7186ce03b43a00c7241be54385120ab3f7a03aa (diff)
downloadnova-01b0f6554be87a0664e74c63817c3034ee40a6ac.tar.gz
nova-01b0f6554be87a0664e74c63817c3034ee40a6ac.tar.xz
nova-01b0f6554be87a0664e74c63817c3034ee40a6ac.zip
Update to using oslo periodic tasks implementation.
Convert nova to using the oslo periodic tasks implementation. There are no functional changes in this review. Change-Id: I767e0ad17781d5f9d5e987e0a4ad65796243ae5c
Diffstat (limited to 'nova/cells')
-rw-r--r--nova/cells/manager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/cells/manager.py b/nova/cells/manager.py
index 6c44d0cba..15ee2224c 100644
--- a/nova/cells/manager.py
+++ b/nova/cells/manager.py
@@ -28,6 +28,7 @@ from nova import context
from nova import exception
from nova import manager
from nova.openstack.common import importutils
+from nova.openstack.common import periodic_task
from nova.openstack.common import timeutils
cell_manager_opts = [
@@ -97,7 +98,7 @@ class CellsManager(manager.Manager):
else:
self._update_our_parents(ctxt)
- @manager.periodic_task
+ @periodic_task.periodic_task
def _update_our_parents(self, ctxt):
"""Update our parent cells with our capabilities and capacity
if we're at the bottom of the tree.
@@ -105,7 +106,7 @@ class CellsManager(manager.Manager):
self.msg_runner.tell_parents_our_capabilities(ctxt)
self.msg_runner.tell_parents_our_capacities(ctxt)
- @manager.periodic_task
+ @periodic_task.periodic_task
def _heal_instances(self, ctxt):
"""Periodic task to send updates for a number of instances to
parent cells.