From 1f5e7856b1d514450ebf4e9bf218255225f2bc07 Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 19 Oct 2024 20:38:24 +0200 Subject: [PATCH] fix: url name --- src/fellchensammlung/tools/misc.py | 2 +- src/notfellchen/celery.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/tools/misc.py b/src/fellchensammlung/tools/misc.py index 8bfe2c5..6c94b47 100644 --- a/src/fellchensammlung/tools/misc.py +++ b/src/fellchensammlung/tools/misc.py @@ -31,6 +31,6 @@ def age_as_hr_string(age: datetime.timedelta) -> str: def healthcheck_ok(): try: - requests.get(settings.HEALTHCHECK_URL, timeout=10) + requests.get(settings.HEALTHCHECKS_URL, timeout=10) except requests.RequestException as e: logging.error("Ping to healthcheck-server failed: %s" % e) diff --git a/src/notfellchen/celery.py b/src/notfellchen/celery.py index 7ea4774..2b88c62 100644 --- a/src/notfellchen/celery.py +++ b/src/notfellchen/celery.py @@ -25,5 +25,5 @@ app.conf.beat_schedule = { if settings.HEALTHCHECKS_URL is not None and settings.HEALTHCHECKS_URL != "": # If a healthcheck is configured, this will send an hourly ping to the healthchecks server app.conf.beat_schedule['hourly-healthcheck'] = {'task': 'tools.healthcheck', - 'schedule': crontab(minute=32), + 'schedule': crontab(minute=43), }