Skip to content

Commit

Permalink
Merge pull request #735 from pulibrary/add_cron_job_for_gobi_isbn
Browse files Browse the repository at this point in the history
Add rake task and cron job for Gobi ISBN update
  • Loading branch information
christinach authored Mar 27, 2024
2 parents 14a7471 + baa503d commit 10a9921
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
rake "lib_jobs:process_bursar_fines"
end

# Run on production Tuesday at 10:30am EST or 11:30am EDT (after the Alma report is scheduled to run)
every :tuesday, at: '3:30 pm', roles: [:cron_prod1] do
rake "lib_jobs:gobi_isbn_update"
end

# Run on production Wednesday at 7:00am EST or 8:00am EDT
# After Alma submits data to OCLC every Tuesday at 7:00 pm Eastern
every :wednesday, at: '12:00 pm', roles: [:cron_prod2] do
Expand Down
6 changes: 6 additions & 0 deletions lib/tasks/lib_jobs.rake
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,10 @@ namespace :lib_jobs do
job = AlmaSubmitCollection::AlmaSubmitCollectionJob.new
job.run
end

desc "Gobi ISBN update: Download CSV of newly received records from lib-sftp, create new CSV to upload to Gobi"
task gobi_isbn_update: [:environment] do
job = Gobi::IsbnReportJob.new
job.run
end
end

0 comments on commit 10a9921

Please sign in to comment.