From ab0c1a5c463173d3a2ec6ab43eb0fafd01df8dde Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 10 Oct 2024 22:24:55 +0200 Subject: [PATCH] refactor: make healthchekscheck hourly --- src/notfellchen/celery.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/notfellchen/celery.py b/src/notfellchen/celery.py index 38b7e75..763c575 100644 --- a/src/notfellchen/celery.py +++ b/src/notfellchen/celery.py @@ -22,8 +22,8 @@ app.conf.beat_schedule = { }, } -if settings.HEALTHCHECK_URL is not None: - # If a healthcheck is configured, this will send a daily ping to the healthchecks server - app.conf.beat_schedule['daily-healthcheck'] = {'task': 'tools.healthcheck', - 'schedule': crontab(hour=2), - } +if settings.HEALTHCHECK_URL is not None and settings.HEALTHCHECK_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), + }