3 ms·
??? Why not just set it to run at say 1am? Stateless, simple. Or did I miss something? def deleting_thread(): while True: # 10 minutes ti
by queensnake 17y ago
??? Why not just set it to run at say 1am? Stateless, simple. Or did I miss something?
def deleting_thread():
while True:
# 10 minutes
time.sleep(10 * 60)
# pseudocode
if 01:00 <= time() and time() < 01:10:
deleteFromSolrAndOptimize()
And no I'm not creating an account to tell this guy so on his blog.