Delta has built-in repair and retry functionality. This is useful for when a storage deal fails for some reason. The repair and retry functionality is built into the daemon and can be accessed thru HTTP API.
Definition of terms:
Users can also manually repair and retry deals via HTTP API.
curl --location --request GET 'http://localhost:1414/api/v1/retry/deal/end-to-end/:contentId' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/json'
curl --location --request GET 'http://localhost:1414/api/v1/retry/deal/end-to-end/:contentId' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/json'
curl --location --request GET 'http://localhost:1414/api/v1/retry/deal/import/:contentId' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/json'
Users who wants to retry deals can set this up via metadata request.
The metadata
parameter is a JSON object that can contain the following fields:
auto_retry
- boolean value that indicates whether the daemon should automatically retry a storage deal if it fails. Default is false
.
When an auto_retry field is set to true, the deal will run retries on several miners using https://sp-select.delta.store/api/providers until a miner accepts the deal.
The status check API will return the list of deals that have been retried.