v0.42.1 Rewrite and simplication of concurrent-ruby support

This commit is contained in:
David Sainty 2024-08-17 22:26:07 +10:00
parent f90d0fb6ae
commit 678012f76a

View File

@ -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. ### 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 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. # Run until all posts have been processed.
until is_complete until is_complete