Skip to content

A platform for community discussion. Free, open, simple.

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

Gerhard Schlager68b082e1a427
diff --git a/lib/backup_restore/restorer.rb b/lib/backup_restore/restorer.rb
index 1e95502242e..f183c2ce8c2 100644
--- a/lib/backup_restore/restorer.rb
+++ b/lib/backup_restore/restorer.rb
@@ -504,6 +504,7 @@ module BackupRestore
ENV["SKIP_FAILED"] = "1"
ENV["MIGRATE_TO_MULTISITE"] = "1" if Rails.configuration.multisite
Rake::Task["uploads:migrate_to_s3"].invoke
+ Jobs.run_later!
end
def remove_local_uploads(directory)