Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 251628b

Browse files
authored
FIX: Shutdown embeddings thread pool after processing (#961)
1 parent ef07fcb commit 251628b

File tree

1 file changed

+3
-0
lines changed
  • lib/embeddings/vector_representations

1 file changed

+3
-0
lines changed

lib/embeddings/vector_representations/base.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ def gen_bulk_reprensentations(relation)
8181
.zip(*promised_embeddings)
8282
.value!
8383
.each { |e| save_to_db(e[:target], e[:embedding], e[:digest]) }
84+
85+
pool.shutdown
86+
pool.wait_for_termination
8487
end
8588

8689
def generate_representation_from(target, persist: true)

0 commit comments

Comments
 (0)