Skip to content

Commit 78d1f79

Browse files
openstackerstrigazi
authored andcommitted
Fix health status polling interval
The "spacing" parameter of peirod jobs sync_cluster_status and sync_cluster_health_status are placed incorrectly. This patch fixes it. Task: 41200 Story: 2007683 Change-Id: I9a129241d5f31d84d93da047c654da21604eff66
1 parent 5f9bfe3 commit 78d1f79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

magnum/service/periodic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ def __init__(self, conf):
152152
super(MagnumPeriodicTasks, self).__init__(conf)
153153
self.notifier = rpc.get_notifier()
154154

155-
@periodic_task.periodic_task(
156-
spacing=CONF.kubernetes.health_polling_interval,
157-
run_immediately=True)
155+
@periodic_task.periodic_task(spacing=10, run_immediately=True)
158156
@set_context
159157
def sync_cluster_status(self, ctx):
160158
try:
@@ -184,7 +182,9 @@ def sync_cluster_status(self, ctx):
184182
"Ignore error [%s] when syncing up cluster status.",
185183
e, exc_info=True)
186184

187-
@periodic_task.periodic_task(spacing=10, run_immediately=True)
185+
@periodic_task.periodic_task(
186+
spacing=CONF.kubernetes.health_polling_interval,
187+
run_immediately=True)
188188
@set_context
189189
def sync_cluster_health_status(self, ctx):
190190
try:

0 commit comments

Comments
 (0)