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