FIX: Scheduled jobs not showing up in /sidekiq/schedule in dev.

This commit is contained in:
Guo Xiang Tan 2020-10-08 08:38:35 +08:00 committed by Alan Guo Xiang Tan
parent 3c678df942
commit cabbc32024
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
# Ensure that scheduled jobs are loaded before mini_scheduler is configured.
if Rails.env == "development" && Sidekiq.server?
if Rails.env == "development"
require "jobs/base"
Dir.glob("#{Rails.root}/app/jobs/scheduled/*.rb") do |f|