Periodic tasks
Cavaliba has an internal scheduler to run various periodic tasks. You have nothing to configure.
The only tasks not handled internally are backup tasks which you should configure on your own (see dedicated doc page).
Current internal Tasks
"log_purge": {
"task": "app_home.tasks.log_purge",
"schedule": crontab(hour=20, minute=42),
},
"clear_expired_sessions": {
"task": "app_home.tasks.clear_expired_sessions",
"schedule": crontab(hour=19, minute=12),
},
"archive_expired_sirene": {
"task": "app_sirene.notify.archive_expired_sirene",
"schedule": 60.0,
},
"status_run_monitor": {
"task": "app_status.tasks.task_run_monitor",
"schedule": 15.0,
},
"status_sample_hour": {
"task": "app_status.tasks.task_sample_hour",
"schedule": 60.0,
},
"status_sample_day": {
"task": "app_status.tasks.task_sample_day",
"schedule": 900.0,
},
"status_cleanup_raw": {
"task": "app_status.tasks.task_cleanup_raw",
"schedule": 900.0,
},
"status_cleanup_hour": {
"task": "app_status.tasks.task_cleanup_hour",
"schedule": 18000.0,
},
housekeeping_daily bundles several maintenance steps, run once a day at CAVALIBA_HOUSEKEEPING_SCHEDULE (default 22:22):
- update_bigset
- EAV refresh, then EAV purge (remove orphan EAV cache rows)
- log purge (per level retention: LOG_KEEP_DAYS_DEBUG / INFO / WARNING / ERROR / CRITICAL)
- clear expired sessions
- revision purge (REVISION_KEEP_DAYS)
- datatask cleanup (terminal DataTask entries older than 30 days)
- filestore cleanup: delete DataFile entries past their
not_afterdate, along with their backing file, then remove orphan files found in the filestore folder with no matching DataFile record (e.g. leftover temporary upload files) once they are more than 24h old