v0.42.1 Rewrite and simplication of concurrent-ruby support
This commit is contained in:
parent
78797c3ec1
commit
8e6edb2d3f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user