pulibrary / lib_jobs

Enterprise Services batch processing tasks. Rails 7 Ruby 3.1.0
4 stars 0 forks source link

Unexpected EOF in alma renew #704

Open rladdusaw opened 5 months ago

rladdusaw commented 5 months ago

Expected behavior

The job should complete successfully

Actual behavior

An error occurs when reading the file

Honeybadger link and code snippet, if applicable

212 | end
-- | --
213 | if @rbuffer.empty?
214 | return sysread_nonblock(maxlen, buf, exception: exception)
215 | end
216 | ret = consume_rbuff(maxlen)

Possibly related error in lib-jobs log: https://lib-jobs.princeton.edu/data_sets/22096

kevinreiss commented 5 months ago

The Alma Renew Job looks like it did not finish, see https://app.honeybadger.io/projects/100710/faults/105693078.

kevinreiss commented 5 months ago

I'm not sure https://lib-jobs.princeton.edu/data_sets/22096 is an error, I think the file was created successfully.

kevinreiss commented 5 months ago

Spoke with @mzelesky and he mentioned there are some very old unprocessed files from over 1 year ago in the data directory for this job on lib-sftp that the job is trying to process everyday that may have contributed to this issue. We should mark these as processed since the data in them is no longer relevant. These are what is adding all the information about unknown barcodes to the daily job log for this process.