sul-dlss-deprecated / sdr-preservation-core

Robots for ingesting objects into SDR Preservation Core -- replaced by preservation_robots
Other
1 stars 0 forks source link

Workflow exceptions might not be caught after WFS 2.x upgrade? #50

Closed dazza-codes closed 7 years ago

dazza-codes commented 7 years ago

After https://github.com/sul-dlss/sdr-preservation-core/pull/49, review the SDR-PC code for exception handling when issuing WFS calls. If the exception handling is always catching StandardError, it might be OK.

jmartin-sul commented 7 years ago

seems ok based on a quick search for rescue?

https://github.com/sul-dlss/sdr-preservation-core/search?utf8=%E2%9C%93&q=rescue&type=

jmartin-sul commented 7 years ago

from the dor-workflow-service release notes:

https://github.com/sul-dlss/dor-workflow-service/releases/tag/v2.0.0 -

dazza-codes commented 7 years ago

This could be a non-issue; we done some analysis on the code to confirm that most of the exceptions catch StandardError and the https://github.com/sul-dlss/dor-workflow-service/blob/master/lib/dor/workflow_exception.rb is a subclass of RuntimeException which is a subclass of StandardError. Once the new master branch is deployed and running in production for a month or so, we can submit new issues that arise as necessary.