samvera / hyrax

Hyrax is a Ruby on Rails Engine built by the Samvera community. Hyrax provides a foundation for creating many different digital repository applications.
http://hyrax.samvera.org/
Apache License 2.0
182 stars 122 forks source link

Updating attributes causes permanent failures when jobs get automatically resubmitted #6842

Open laritakr opened 2 weeks ago

laritakr commented 2 weeks ago

Descriptive summary

If Create Work Job fails and reschedules itself, it gets rescheduled with missing attributes because the attributes were modified by the following method.

https://github.com/samvera/hyrax/blob/main/app/jobs/create_work_job.rb#L41-L56

A job that gets auto-restarted should have the same parameters as the original job.

Related work

Link to related issues or prior related work here.