refactor: make healthchekscheck hourly
This commit is contained in:
parent
74a6b5f2aa
commit
ab0c1a5c46
@ -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),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user