pulibrary / lib_jobs

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

lib_jobs:send_eads skips publicpolicy #856

Closed regineheberlein closed 1 month ago

regineheberlein commented 1 month ago

Expected behavior

The lib_jobs:send_eads job sends the EAD's exported from all repositories.

Actual behavior

The lib_jobs:send_eads job skips publicpolicy files when the rake task is run manually. The files were included in the last scheduled update. The logs suggest that the exports succeeded but nothing was committed to SVN. Since the job is now exporting dao elements when before it wasn't, the expected behavior is that all or most of the EAD exports in repo 3 have changes, so there shouldn't be nothing to commit.

Steps to replicate

  1. run bundle exec rake lib_jobs:send_eads in lib_jobs
  2. when the process has finished, update SVN: all directories will have updated except publicpolicy

Impact of this bug

We are missing an important part of the snapshot. We also can't use the data as another checkpoint to count active digital objects (see #https://github.com/pulibrary/aspace_helpers/issues/614)

Acceptance criteria

regineheberlein commented 1 month ago

This has happened twice on the server. I'm running it locally over publicpolicy only now to see what happens.

Update: running and committing locally/manually succeeds without errors.

regineheberlein commented 1 month ago

I'll make a note to check the next scheduled export and will open a new ticket if it happens again.