Manually marking ingests as failed
Last updated
Last updated
Our monitoring tools will highlight ingests that have "stalled" – that is, that don't have any recent processing activity. This is usually requires investigation, but once you've understood the cause you may want to manually mark the bag as failed.
e.g. We have ingests for test bags from early deployments of the storage service. They never completed processing (because the storage service was still a work-in-progress), but we don't want them to be flagged as "stalled" for ever more.
This guide explains how to manually mark a bag as failed.
Note: In the storage service, all updates to ingests are managed by the ingests tracker. You should also update ingests through the ingests tracker; do not modify the ingests database manually.
This ensures all updates are applied consistently and propagate to other services (e.g. the ingests indexer).
In the Wellcome instance of the storage service, it is not possible to manually modify the ingests database.
To manually mark a bag as failed:
Identify the ID of the ingest you want to mark as failed.
Create a JSON payload based on the IngestStatusUpdate
model. For example, at , you'd create something like:
Send your JSON payload to the SNS topic which is the input for the ingests_tracker
app.
Note: at Wellcome, these topics are
storage-prod_ingests
andstorage-staging_ingests
.