mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-26 17:42:15 +00:00
FIX: Shutdown embeddings thread pool after processing (#961)
This commit is contained in:
parent
ef07fcb308
commit
251628bfa1
@ -81,6 +81,9 @@ module DiscourseAi
|
||||
.zip(*promised_embeddings)
|
||||
.value!
|
||||
.each { |e| save_to_db(e[:target], e[:embedding], e[:digest]) }
|
||||
|
||||
pool.shutdown
|
||||
pool.wait_for_termination
|
||||
end
|
||||
|
||||
def generate_representation_from(target, persist: true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user