Skip to content

Commit

Permalink
daily_hathi script works properly
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Jul 24, 2023
1 parent e6cfc29 commit caee6bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umich_catalog_indexing/bin/index_latest_hathi_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

hathi_file = Jobs::Utilities::ZephirFile.latest_daily_update

if ENV.fetch("SOLRCLOUD_ON")
logger.info "Sending job to index #{hathi_file} into hatcher production solr: #{ENV.fetch("LIVE_SOLR_URL")}"
if ENV.fetch("SOLRCLOUD_ON") == true
logger.info "Sending job to index #{hathi_file} into live solr: #{ENV.fetch("LIVE_SOLR_URL")}"
IndexHathi.perform_async(hathi_file, ENV.fetch("LIVE_SOLR_URL"))
else
logger.info "Sending job to index #{hathi_file} into hatcher production solr: #{ENV.fetch("HATCHER_PRODUCTION_SOLR_URL")}"
Expand Down

0 comments on commit caee6bc

Please sign in to comment.