Skip to content

Complete a deposit stuck in the "depositing state"

Peter Mangiafico edited this page Sep 22, 2023 · 2 revisions

If a work gets stuck in the "depositing" state, but checking in Argo confirms the object is actually done with accessioning, and the problem is just that H2 has likely missed this (due to a dropped RabbitMQ message or some other problem), you can force H2 to set this object to the deposited state. To manually set the object in H2 to a completed state, starting with the work id, head to the H2 Rails console:

 work_id = 123
 object = Work.find(work_id)
 DepositCompleter.complete(object_version: object.head)

This is what happens in the DepositCompleteJob which is what is triggered when the RabbitMQ message is received and processed.