def _queue_refresh_index(self):
"""Queues a background task to update search indexes. This
method is a protected helper function for depot consumers."""
try:
self.__bgtask.put(self.repo.refresh_index)
except queue.Full:
# If another operation is already in progress, just
# log a warning and drive on.
cherrypy.log("Skipping indexing; another operation is "
"already in progress.", "INDEX")
评论列表
文章目录