Skip to content

fetch the asset sync progress from graphql endpoint #770

@rootmout

Description

@rootmout

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 #675).

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions