Skip to content

Commit 4dd6574

Browse files
author
acer-king
committed
revert back to the main thread
1 parent d9fa0b8 commit 4dd6574

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

validators/weight_setter.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ def __init__(self, config, cache: QueryResponseCache, loop=None):
8686
bt.logging.info(f"total loaded questions are {len(self.queries)}")
8787
self.set_up_next_block_to_wait()
8888
# Set up async tasks
89-
score_thread = threading.Thread(target=self.start_scoring_process)
90-
score_thread.start()
89+
# score_thread = threading.Thread(target=self.start_scoring_process)
90+
# score_thread.start()
91+
self.loop.create_task(self.process_queries_from_database())
9192

9293
self.saving_datas = []
9394
self.url = "http://ec2-3-239-8-190.compute-1.amazonaws.com:8000/items"

0 commit comments

Comments
 (0)