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

@ -75,6 +75,7 @@ def set_ooni_alarm(origin_id: int, country: str, state: AlarmState, text: str):
class BlockOONIAutomation(BaseAutomation):
short_name = "block_ooni"
description = "Import origin and/or proxy reachability results from OONI"
frequency = 240
def automate(self, full: bool = False) -> Tuple[bool, str]:
origins = Origin.query.filter(Origin.destroyed == None).all()