def on_datamodel_in_sync(self):
if not self._cleanup_done:
# Datamodel in sync for the first time. Give the managers some
# time to finish processing, then trigger cleanup.
self._cleanup_done = True
_log.info("No cleanup scheduled, scheduling one.")
gevent.spawn_later(self.config.STARTUP_CLEANUP_DELAY,
functools.partial(self._do_cleanup,
async=True))
self._cleanup_done = True
评论列表
文章目录