osulp/Easydeposit2

Debug 'publish_failed' event

Closed this issue · 3 comments

Descriptive summary

Debug: PublishWorkJob.perform : Event 'publish_failed' cannot transition from 'recruiting_authors'.
Expected behavior: Publish Work Notification Email
Email initiated by scholarsarchive@oregonstate.edu at 2019-01-24 12:36:29 -0800

Publish work
Method: PublishWorkJob
Expected behavior:

  • Add a job to re-publish items with above error
  • When publishing to ScholarsArchive fails, ED2 should notify scholarsarchive@oregonstate.edu. The email_published_work_job.rb should email system_email = ENV['ED2_EMAIL_FROM'].
  1. We can update app/model/publication.rb and add more all possible transition states (e.g., recruiting_authors) to Event publish_failed
  2. An PublicationWork error like above does not mean the ingestion to SA failed. We can check 'pub url' to make sure the ingestion is successful if it exists

Duplicate of #229