FIX: Scheduled jobs not showing up in /sidekiq/schedule in dev.
This commit is contained in:
parent
3c678df942
commit
cabbc32024
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Ensure that scheduled jobs are loaded before mini_scheduler is configured.
|
# Ensure that scheduled jobs are loaded before mini_scheduler is configured.
|
||||||
if Rails.env == "development" && Sidekiq.server?
|
if Rails.env == "development"
|
||||||
require "jobs/base"
|
require "jobs/base"
|
||||||
|
|
||||||
Dir.glob("#{Rails.root}/app/jobs/scheduled/*.rb") do |f|
|
Dir.glob("#{Rails.root}/app/jobs/scheduled/*.rb") do |f|
|
||||||
|
|
Loading…
Reference in New Issue