From b7fcb220c9ae180e16cb39687f5648ec6bd27b6d Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 17 Aug 2024 23:57:56 +1000 Subject: [PATCH] v0.42.1 Rewrite and simplication of concurrent-ruby support --- gossamer_forums.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 837d564..32298a8 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1162,7 +1162,9 @@ class GossamerForumsImporter < ImportScripts::Base #### break if current_post_batch >= parent_post_count # Wait for all jobs in the current batch to finish before proceeding + puts "PP 33 -- Ready for shutdown" pool.shutdown # Initiate thread pool shutdown after all jobs submitted + puts "PP 44 -- Now wait for termination" pool.wait_for_termination # Wait for all threads to finish exec # Check if all posts have been processed