justinkalland / poh-rest

A simple centralized REST API to fetch data from the Proof of Humanity protocol and ecosystem.
https://api.poh.dev
5 stars 1 forks source link

Manually added registrations don't get added #1

Open justinkalland opened 3 years ago

justinkalland commented 3 years ago

This problem came up on the Kovan deployment.

A manually added submission never has an unresolved request. Because the worker builds by pulling open requests from The Graph, the registration never gets added.

Temporary solution is just running ./dist/worker/scripts/processEntireGraph.js to pick them up.

One fix would be regularly calling processEntireGraph.js but that wouldn't scale.

Perhaps it is not worth fixing on the mainnet (we should never have manual).

justinkalland commented 3 years ago

For now I setup a Heroku Scheduler job, it runs processEntireGraph.js every 10 minutes. This isn't ideal but at least works.