automation: run some jobs less frequently

This commit is contained in:
Iain Learmonth 2022-05-13 09:28:54 +01:00
parent d54fae7423
commit d7091ead5a
3 changed files with 3 additions and 0 deletions

View file

@ -25,6 +25,7 @@ def set_http_alarm(proxy_id: int, state: AlarmState, text: str):
class AlarmProxyHTTPStatusAutomation(BaseAutomation):
short_name = "alarm_http_status"
description = "Check all deployed proxies for HTTP status code"
frequency = 45
def automate(self, full: bool = False) -> Tuple[bool, str]:
proxies = Proxy.query.filter(