FIX: Ensure that jobs don't run immediately after migrate_to_s3

This commit is contained in:
Gerhard Schlager 2019-07-23 17:42:12 +02:00
parent 3fdc10337d
commit 68b082e1a4

View File

@ -504,6 +504,7 @@ module BackupRestore
ENV["SKIP_FAILED"] = "1" ENV["SKIP_FAILED"] = "1"
ENV["MIGRATE_TO_MULTISITE"] = "1" if Rails.configuration.multisite ENV["MIGRATE_TO_MULTISITE"] = "1" if Rails.configuration.multisite
Rake::Task["uploads:migrate_to_s3"].invoke Rake::Task["uploads:migrate_to_s3"].invoke
Jobs.run_later!
end end
def remove_local_uploads(directory) def remove_local_uploads(directory)