Automatic updates scheduler

This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 42b3636995
commit 9ded0c1c3a
4 changed files with 127 additions and 1 deletions

View File

@@ -504,7 +504,7 @@ def main() -> None:
# infrequent attempts if we successfully updated recently
wait_helper.only_check_for_update = False
wait_helper.sleep(5*60 if update_failed_count > 0 else 1.5*60*60)
wait_helper.sleep(5*60 if update_failed_count > 0 else (1.5*60*60 if params.get_int("UpdateSchedule") else 100*365*24*60*60))
if __name__ == "__main__":