cronitorio / cronitor-python

Python client for Cronitor
MIT License
73 stars 9 forks source link

validate_config and apply_config timeout #27

Closed yjszk closed 1 year ago

yjszk commented 1 year ago

If the number of monitors exceeds 150, the following error occurs in validate_config and apply_config.

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='cronitor.io', port=443): Max retries exceeded with url: /api/monitors.yaml (Caused by ReadTimeoutError("HTTPSConnectionPool(host='cronitor.io', port=443): Read timed out. (read timeout=10)"))

I have proposed a revision in the following PR. Thank you for your consideration. https://github.com/cronitorio/cronitor-python/pull/26

aflanagan commented 1 year ago

This is now available in the 4.7.0 release - https://pypi.org/project/cronitor/4.7.0/

Thanks for your help!