update
This commit is contained in:
parent
9374e45e1e
commit
a77ff095f8
@ -33,3 +33,7 @@ def sync_documents():
|
|||||||
print("更新向量完成")
|
print("更新向量完成")
|
||||||
|
|
||||||
time.sleep(1 * 5)
|
time.sleep(1 * 5)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
sync_documents()
|
@ -1,11 +1,11 @@
|
|||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
import worker
|
import chunk
|
||||||
import server
|
import server
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# Start the worker thread
|
# Start the worker thread
|
||||||
worker_thread = Thread(target=worker.sync_documents, args=())
|
worker_thread = Thread(target=chunk.sync_documents, args=())
|
||||||
worker_thread.start()
|
worker_thread.start()
|
||||||
|
|
||||||
# Start the server thread
|
# Start the server thread
|
||||||
|
Loading…
Reference in New Issue
Block a user