Debug 'publish_failed' event
Closed this issue · 3 comments
zhang4952 commented
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
zhang4952 commented
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']
.
zhang4952 commented
- We can update app/model/publication.rb and add more all possible transition states (e.g., recruiting_authors) to Event
publish_failed
- 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