refactor: make healthchekscheck hourly

This commit is contained in:
moanos [he/him] 2024-10-10 22:24:55 +02:00
parent 74a6b5f2aa
commit ab0c1a5c46

View File

@ -22,8 +22,8 @@ app.conf.beat_schedule = {
}, },
} }
if settings.HEALTHCHECK_URL is not None: if settings.HEALTHCHECK_URL is not None and settings.HEALTHCHECK_URL != "":
# If a healthcheck is configured, this will send a daily ping to the healthchecks server # If a healthcheck is configured, this will send an hourly ping to the healthchecks server
app.conf.beat_schedule['daily-healthcheck'] = {'task': 'tools.healthcheck', app.conf.beat_schedule['hourly-healthcheck'] = {'task': 'tools.healthcheck',
'schedule': crontab(hour=2), 'schedule': crontab(minute=32),
} }