GreenScheduler / cats

CATS: the Climate-Aware Task Scheduler :cat2: :tiger2: :leopard:
https://greenscheduler.github.io/cats/
MIT License
52 stars 9 forks source link

cache IP address geolocation api calls? #108

Open andreww opened 3 months ago

andreww commented 3 months ago

If it's not provided by the user or configuration file, we try geolocation to find out where we are on line 116 of configure.py: r = requests.get("https://ipapi.co/json/") It would be easy to cache these calls (like we do for the carbon intensity API calls). Worth doing?