diff options
Diffstat (limited to 'ocata/ocata/vesagent/vesagent_ctrl.py')
-rw-r--r-- | ocata/ocata/vesagent/vesagent_ctrl.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ocata/ocata/vesagent/vesagent_ctrl.py b/ocata/ocata/vesagent/vesagent_ctrl.py index 421959e8..f99ac462 100644 --- a/ocata/ocata/vesagent/vesagent_ctrl.py +++ b/ocata/ocata/vesagent/vesagent_ctrl.py @@ -22,6 +22,7 @@ from rest_framework.views import APIView from django.conf import settings from common.msapi import extsys +from ocata.vesagent.tasks import scheduleBacklogs from ocata.vesagent.event_domain.fault_vm import buildBacklog_fault_vm from django.core.cache import cache @@ -257,6 +258,8 @@ class VesAgentCtrl(APIView): # cache forever cache.set("VesAgentBacklogs.config.%s" % vimid, VesAgentBacklogsConfigStr, None) + # notify schduler + scheduleBacklogs.delay(vimid) except Exception as e: self._logger.error("exception:%s" % str(e)) VesAgentBacklogsConfig = {"error":"exception occurs during build backlogs"} |