FIX: Don't enqueue onceoff job in migration.

* Deployment of app servers may happen minutes after migrations.
This commit is contained in:
Guo Xiang Tan 2017-11-22 12:07:48 +08:00
parent a92f61e926
commit edfa2c3af9
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ end
# we need to run seed_fu every time we run rails db:migrate
task 'db:migrate', [:multisite] => ['environment', 'set_locale'] do |_, args|
SeedFu.seed(DiscoursePluginRegistry.seed_paths)
Jobs::Onceoff.enqueue_all
Jobs.enqueue_in(60, :enqueue_onceoffs)
if Rails.env.test? && !args[:multisite]
system("rails db:schema:dump")