mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-27 10:02:16 +00:00
FIX: Ensure that we shutdown thread pool (#1207)
This commit is contained in:
parent
451f7662b2
commit
01eced74a3
@ -49,7 +49,7 @@ module DiscourseAi
|
||||
.zip(*promised_embeddings)
|
||||
.value!
|
||||
.each { |e| schema.store(e[:target], e[:embedding], e[:digest]) }
|
||||
|
||||
ensure
|
||||
pool.shutdown
|
||||
pool.wait_for_termination
|
||||
end
|
||||
|
@ -92,7 +92,7 @@ module DiscourseAi
|
||||
.zip(*promised_classifications)
|
||||
.value!
|
||||
.each { |r| store_classification(r[:target], r[:classification]) }
|
||||
|
||||
ensure
|
||||
pool.shutdown
|
||||
pool.wait_for_termination
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user