v0.42.1 Rewrite and simplication of concurrent-ruby support

This commit is contained in:
David Sainty 2024-08-17 23:51:42 +10:00
parent 78797c3ec1
commit 8e6edb2d3f

View File

@ -1087,7 +1087,8 @@ class GossamerForumsImporter < ImportScripts::Base
sqlite_mutex = Mutex.new # Mutex for SQLite opreations sqlite_mutex = Mutex.new # Mutex for SQLite opreations
# Use CachedThreadPool for dynamic thread management # Use CachedThreadPool for dynamic thread management
pool = Concurrent::CachedThreadPool.new #### pool = Concurrent::CachedThreadPool.new
pool = Concurrent::FixedThreadPool.new(11)
# Run until all posts have been processed. # Run until all posts have been processed.
until is_complete until is_complete