diff --git a/app/jobs/base.rb b/app/jobs/base.rb index 05133bfc7e8..fa16e3179b1 100644 --- a/app/jobs/base.rb +++ b/app/jobs/base.rb @@ -200,7 +200,13 @@ module Jobs # Otherwise execute the job right away opts.delete(:delay_for) opts[:sync_exec] = true - klass.new.perform(opts) + if Rails.env == "development" + Scheduler::Defer.later("job") do + klass.new.perform(opts) + end + else + klass.new.perform(opts) + end end end