Skip to content

Commit fc7378b

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix health status polling interval"
2 parents 285f91b + 78d1f79 commit fc7378b

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)