sb-ai-lab / Eco2AI

eco2AI is a python library which accumulates statistics about power consumption and CO2 emission during running code.
Apache License 2.0
226 stars 18 forks source link

webhook timeout #8

Closed andvarfolomeev closed 7 months ago

andvarfolomeev commented 1 year ago

Allows you to manually set a timeout. The idea of setting the timeout to half of the measurement period was bad, as it is wrong to keep the connection, for example, 30 seconds. Typically web servers should respond within 0.1 to 0.3 seconds.

I also added webhook_url and webhook_timeout to the docstring in Tracker.__init__.