mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
DEV: Only eagerload scheduled jobs in a Sidekiq process.
This commit is contained in:
parent
5270cd97ef
commit
20bd6d9797
@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Ensure that scheduled jobs are loaded before mini_scheduler is configured.
|
||||
if Rails.env == "development"
|
||||
if Rails.env == "development" && Sidekiq.server?
|
||||
require "jobs/base"
|
||||
Dir.glob("#{Rails.root}/app/jobs/scheduled/*.rb") do |f|
|
||||
load(f)
|
||||
|
Loading…
Reference in New Issue
Block a user