tweag / nixpkgs-graph-explorer

Explore the nixpkgs dependency graph
MIT License
15 stars 0 forks source link

Some packages are not successfully written to the graph #90

Closed zz1874 closed 1 year ago

zz1874 commented 1 year ago

Description: Currently, the nixpkgs-graph-explorer experiences transient issues with Gremlin Server (i.e. high load), resulting in failed write operations for certain packages. These failures lead to missing data and hinder the ability to present complete and precise information in the graph explorer.

To mitigate this issue, it is suggested to add retry logic and improve logging for write operations in the explorer.api.ingest module. By incorporating these changes, we can ensure that failed cases are properly recorded and potentially retried.

Proposed Solution:

As a quick initial step, we can leverage the existing retry library that is already used in our custom Gremlin transport. By applying a few decorators to the functions responsible for writing edges and vertices, we can introduce retry behavior for these operations.