kingdonb / simplest-commitbee

Simplest commits-to/beeminder integration (roughly implements):
https://github.com/commitsto/commits.to/wiki#simple-beeminder-integration
MIT License
5 stars 0 forks source link

Resolve fresh data fails to refresh #13

Closed kingdonb closed 2 years ago

kingdonb commented 2 years ago

We are running the script to fetch simplest-commitbee.json every time, but we are not reading the file again from disk.

Freshness of 10s is presumed to be fresh enough, (we should only be reading the file once every 10s as a rate limit.)

This is not the expensive part, the fetch is the expensive part, but since the whole sync operation blocks on both the fetch and the read, it's safe to put that rate limit here (and it definitely won't come back to bite me in the ass!)

checks behind self Yeah it'll be fine...