pulibrary / bibdata

Local API for retrieving bibliographic and other useful data from Alma (Ruby 3.2.0, Rails 7.1.3.4)
BSD 2-Clause "Simplified" License
16 stars 7 forks source link

Create the event before creating the incremental SCSB and make sure the dump is connected to this event_id #2447

Closed christinach closed 4 weeks ago

christinach commented 4 weeks ago

This is to fix an error we saw in the sidekiq logs, which was blocking SCSB incrementals from indexing.

[2024-08-14T15:05:14.414018 #873] ERROR -- : [ActiveJob] [ScsbImportJob] [ee5aab42-b9ba-4265-afe2-e10378594fd0] Error performing ScsbImportJob (Job ID: ee5aab42-b9ba-4265-afe2-e10378594fd0) from Sidekiq(default) in 0.56ms: ActiveRecord::RecordNotFound (Couldn't find Dump without an ID):