v0.42.1 Rewrite and simplication of concurrent-ruby support
This commit is contained in:
parent
2b95e0a89c
commit
7847784e0e
@ -1076,7 +1076,7 @@ class GossamerForumsImporter < ImportScripts::Base
|
||||
parent_post_ids = result.map { |row| row['post_id'] }
|
||||
|
||||
parent_post_count = parent_post_ids.count
|
||||
batch_size = 1 # Set our batch size for number of posts to import in a single batch
|
||||
batch_size = 10 # Set our batch size for number of posts to import in a single batch
|
||||
|
||||
#### current_post_batch = 0 # Set our current batch number. This tracks the current batch of posts being processed.
|
||||
|
||||
@ -1244,7 +1244,8 @@ class GossamerForumsImporter < ImportScripts::Base
|
||||
topic.save!
|
||||
|
||||
topic_created = true
|
||||
rescue ActiveRecord::RecordInvalid => e
|
||||
# rescue ActiveRecord::RecordInvalid => e
|
||||
rescue => e
|
||||
if e.message.include?("Title has already been used")
|
||||
unique_title = "#{title} (#{suffix})"
|
||||
suffix += 1
|
||||
|
Loading…
Reference in New Issue
Block a user