diff options
author | termie <github@anarkystic.com> | 2011-02-22 07:44:41 +0000 |
---|---|---|
committer | Tarmac <> | 2011-02-22 07:44:41 +0000 |
commit | d9f5f817175f8f9ee6554c02e10ddb730f97080d (patch) | |
tree | 4e8dd5bed5bcfe033e48e82a878673291ebac693 /nova/service.py | |
parent | 1f4bf71dfbe742c95584ff3a357076b7ea736d11 (diff) | |
parent | 4b2a45aa5dc91b24aea53f748906d8a69e40f7c8 (diff) | |
download | nova-d9f5f817175f8f9ee6554c02e10ddb730f97080d.tar.gz nova-d9f5f817175f8f9ee6554c02e10ddb730f97080d.tar.xz nova-d9f5f817175f8f9ee6554c02e10ddb730f97080d.zip |
Some quick test cleanups, first step towards standardizing the way we start services in tests.
Diffstat (limited to 'nova/service.py')
-rw-r--r-- | nova/service.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/service.py b/nova/service.py index 59648adf2..45286cf94 100644 --- a/nova/service.py +++ b/nova/service.py @@ -181,6 +181,13 @@ class Service(object): pass self.timers = [] + def wait(self): + for x in self.timers: + try: + x.wait() + except Exception: + pass + def periodic_tasks(self): """Tasks to be run at a periodic interval""" self.manager.periodic_tasks(context.get_admin_context()) |