def register_standing_order_checkin():
"""Create a Tornado PeriodicCallback that will periodically check the
standing orders to see if there's anything to do.
Since we know all events related to files, in theory this shouldn't be
needed, but in practice this can't hurt.
The timeout for the callback is measured in milliseconds, so we queue an
evaluation every 10 minutes.
"""
from tornado import ioloop
cb = ioloop.PeriodicCallback(queue_standing_order_copies, 60 * 10 * 1000)
cb.start()
return cb
# The local-disk staging system for the NRAO Librarian. In a sense this code
# isn't super relevant to searches, but the search system is how it gets
# launched, and it's not obvious to me that there's a better place to put it.
评论列表
文章目录