FIX: Don't enqueue onceoff job in migration.
* Deployment of app servers may happen minutes after migrations.
This commit is contained in:
parent
a92f61e926
commit
edfa2c3af9
|
@ -28,7 +28,7 @@ end
|
||||||
# we need to run seed_fu every time we run rails db:migrate
|
# we need to run seed_fu every time we run rails db:migrate
|
||||||
task 'db:migrate', [:multisite] => ['environment', 'set_locale'] do |_, args|
|
task 'db:migrate', [:multisite] => ['environment', 'set_locale'] do |_, args|
|
||||||
SeedFu.seed(DiscoursePluginRegistry.seed_paths)
|
SeedFu.seed(DiscoursePluginRegistry.seed_paths)
|
||||||
Jobs::Onceoff.enqueue_all
|
Jobs.enqueue_in(60, :enqueue_onceoffs)
|
||||||
|
|
||||||
if Rails.env.test? && !args[:multisite]
|
if Rails.env.test? && !args[:multisite]
|
||||||
system("rails db:schema:dump")
|
system("rails db:schema:dump")
|
||||||
|
|
Loading…
Reference in New Issue