feat: Add admin tasks

This commit is contained in:
2024-11-06 23:32:37 +01:00
parent 0b93b5eccb
commit 0c7080f005
2 changed files with 15 additions and 5 deletions

View File

@@ -16,10 +16,14 @@ app.conf.beat_schedule = {
'task': 'admin.clean_locations',
'schedule': crontab(hour=2),
},
'daily-deactivation': {
'task': 'admin.deactivate_unchecked',
'daily-unchecked-deactivation': {
'task': 'admin.daily_unchecked_deactivation',
'schedule': crontab(hour=1),
},
'daily-404-deactivation': {
'task': 'admin.deactivate_404_adoption_notices',
'schedule': crontab(hour=3),
},
}
if settings.HEALTHCHECKS_URL is not None and settings.HEALTHCHECKS_URL != "":