From 678012f76a64ec1635ed28b4c2b5912b1ab995da Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 17 Aug 2024 22:26:07 +1000 Subject: [PATCH] v0.42.1 Rewrite and simplication of concurrent-ruby support --- gossamer_forums.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 72e43fd..78c972c 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1086,6 +1086,9 @@ class GossamerForumsImporter < ImportScripts::Base ### mutex = Mutex.new # Mutex for MySQL2 operations -- disabled as this may not in fact be necessary - TBD. sqlite_mutex = Mutex.new # Mutex for SQLite opreations + # Use CachedThreadPool for dynamic thread management + pool = Concurrent::CachedThreadPool.new + # Run until all posts have been processed. until is_complete