mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
FEATURE: big warning for uploads missing which can be very very slow on S3
This commit is contained in:
parent
cb86d8279a
commit
8360415453
@ -592,6 +592,17 @@ task "uploads:missing" => :environment do
|
||||
if ENV["SKIP_EXTERNAL"] == "1" && Discourse.store.external?
|
||||
puts "#{RailsMultisite::ConnectionManagement.current_db} has uploads stored externally skipping!"
|
||||
else
|
||||
if Discourse.store.external?
|
||||
puts "-" * 80
|
||||
puts "WARNING! WARNING! WARNING!"
|
||||
puts "-" * 80
|
||||
puts
|
||||
puts <<~TEXT
|
||||
#{RailsMultisite::ConnectionManagement.current_db} has uploads on S3!
|
||||
validating without inventory is likely to take an enormous amount of time.
|
||||
We recommend you run SKIP_EXTERNAL=1 rake uploads:missing to skip validating if on a multisite.
|
||||
TEXT
|
||||
end
|
||||
list_missing_uploads(skip_optimized: ENV['SKIP_OPTIMIZED'])
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user