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