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), }