Skip to content

Commit

Permalink
R2-3054 Fix periodic_job initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
aespinoza-quoin committed Oct 16, 2024
1 parent 3747336 commit 97d9015
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion config/initializers/periodic_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Rails.logger.info('Setting up PeriodicJobs')

jobs = %w[ArchiveBulkExports RecalculateAge]
jobs << OptimizeSolr.to_s if Rails.application.config.solr_enabled
jobs << OptimizeSolr.to_s if Rails.configuration.solr_enabled

jobs.each do |job_name|
next if Delayed::Job.where('handler LIKE :job_class', job_class: "%job_class: #{job_name}%").exists?
Expand Down

0 comments on commit 97d9015

Please sign in to comment.