From 57a4aae92b74a36fdfcdcbaf2890c4f2c762c23a Mon Sep 17 00:00:00 2001 From: licanwei Date: Fri, 27 Jul 2018 19:35:18 -0700 Subject: [PATCH] only check decision engine service We just need to check decision engine service status when Rescheduling continuous audits. This is an update for 1 1:https://review.openstack.org/#/c/586033 Change-Id: I05a17f39b6ff80c6b9382248c72cac571191e395 --- watcher/api/scheduling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/watcher/api/scheduling.py b/watcher/api/scheduling.py index 3f72b0e88..3cdd05be8 100644 --- a/watcher/api/scheduling.py +++ b/watcher/api/scheduling.py @@ -52,7 +52,8 @@ class APISchedulingService(scheduling.BackgroundSchedulerService): self.services_status[service.id] = result notifications.service.send_service_update(context, service, state=result) - if result == failed_s: + if (result == failed_s) and ( + service.name == 'watcher-decision-engine'): audit_filters = { 'audit_type': objects.audit.AuditType.CONTINUOUS.value, 'state': objects.audit.State.ONGOING,