mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 04:59:22 -06:00
FIX: Ensure that jobs don't run immediately after migrate_to_s3
This commit is contained in:
parent
3fdc10337d
commit
68b082e1a4
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user