hazel
hazel copied to clipboard
Throw an error if `INTERVAL` env variable is below 1 minute
It appears that hazel is making unauthenticated requests to the GitHub API.. is that correct?
If so, a running instance will quickly go over its unauthenticated request limit.
Check the INTERVAL
env variable here. What we can do is throw an error if people chose a lower interval than 1m or 2m (60 reqs per hour are allowed).
So.. unauthenticated requests then, right?
@zeke Correct. All unauthenticated. That's what makes Hazel so fast and powerful: It only abstracts the necessary. If you need server-side caching / private repos, there's Nuts... 😊
I see. So hazel will only make a request to the GitHub API every INTERVAL
minute(s), even though apps will be asking hazel for that info much more frequently.
Does every Now app get its own IP address?
I see. So hazel will only make a request to the GitHub API every
INTERVAL
minute(s), even though apps will be asking hazel for that info much more frequently.
Correct.
Does every Now app get its own IP address?
Depends. Sometimes they're on the same IP.
I ask because unauthenticated GitHub API requests are tallied by IP. It might be worth defaulting to a longer interval to reduce the likelihood of contention across apps.