cardano-graphql
cardano-graphql copied to clipboard
fetch the asset sync progress from graphql endpoint
Ask a question
There is already an endpoint in graphql API to query the progression of db sync but I don't find any similar endpoint to get the progression of assets sync.
Typically, if my node is in the following state (which can take several hours):
{"name":"cardano-graphql","hostname":"tg-ada-0","pid":1,"level":30,"module":"Server","msg":"Sync Progress: cardano-db-sync: 100% | Asset: 57%","time":"2022-09-29T06:56:03.505Z","v":0}
I would like to be able to retrieve this progress to mark my node as ready or not (readiness probe in k8s environment). Indeed, in the case where the synchronization of assets is not 100% some requests may return an error (as descirbed in https://github.com/input-output-hk/cardano-graphql/issues/675).
Any update on this?