From b96538fcb46ba9b5656ed07b5b75874d3125eb9e Mon Sep 17 00:00:00 2001 From: xhzhf Date: Tue, 7 Nov 2017 11:56:04 +0800 Subject: [PATCH] change periodic_task to catch all exceptions including BaseException the function of periodic_task does not catch all exception so that all periodic task will die if one periodic task throw BaseException Closes-Bug: #1730556 Change-Id: I2819cd3644aacac86bc6d12c980d8902f1a71823 --- oslo_service/periodic_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_service/periodic_task.py b/oslo_service/periodic_task.py index 689f94ff..cf7d9c5d 100644 --- a/oslo_service/periodic_task.py +++ b/oslo_service/periodic_task.py @@ -218,7 +218,7 @@ class PeriodicTasks(object): try: task(self, context) - except Exception: + except BaseException: if raise_on_error: raise LOG.exception(_LE("Error during %(full_task_name)s"),