You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the ValkyrieIngestJob enqueues the derivatives job directly, and enqueues the characterization job via an object.file.uploaded event.
Instead, ValkyrieIngestJob should not enqueue ValkyrieCreateDerivativesJob. ValkyrieCharacterizationService should publish file.characterized and FileMetadataListener should enqueue either CreateDerivativesJob or ValkyrieCreateDerivativesJob depending on the payload's type.
Descriptive summary
Currently, the ValkyrieIngestJob enqueues the derivatives job directly, and enqueues the characterization job via an
object.file.uploaded
event.Instead, ValkyrieIngestJob should not enqueue ValkyrieCreateDerivativesJob. ValkyrieCharacterizationService should publish file.characterized and FileMetadataListener should enqueue either CreateDerivativesJob or ValkyrieCreateDerivativesJob depending on the payload's type.
See
hyrax/app/services/hyrax/listeners/file_metadata_listener.rb
Line 15 in 9d06f2b
Acceptance Criteria/Expected Behavior
This is a code refactor, but may fix race condition bugs if any exist when derivatives try to run before characterization is finished.
The text was updated successfully, but these errors were encountered: