diff options
Diffstat (limited to 'nova/service.py')
| -rw-r--r-- | nova/service.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/service.py b/nova/service.py index fe6bf8e59..c56973907 100644 --- a/nova/service.py +++ b/nova/service.py @@ -252,9 +252,10 @@ class Service(object): except Exception: pass - def periodic_tasks(self): + def periodic_tasks(self, raise_on_error=False): """Tasks to be run at a periodic interval.""" - self.manager.periodic_tasks(context.get_admin_context()) + ctxt = context.get_admin_context() + self.manager.periodic_tasks(ctxt, raise_on_error=raise_on_error) def report_state(self): """Update the state of this service in the datastore.""" |
