mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 05:13:21 -07:00
Add scheduled task to optimize database
This commit is contained in:
parent
f76bd2af8e
commit
4edd6ce911
3 changed files with 20 additions and 2 deletions
|
@ -439,6 +439,8 @@ def initialize_scheduler():
|
|||
|
||||
backup_hours = CONFIG.BACKUP_INTERVAL if 1 <= CONFIG.BACKUP_INTERVAL <= 24 else 6
|
||||
|
||||
schedule_job(database.optimize, 'Optimize Tautulli database',
|
||||
hours=24, minutes=0, seconds=0)
|
||||
schedule_job(database.make_backup, 'Backup Tautulli database',
|
||||
hours=backup_hours, minutes=0, seconds=0, args=(True, True))
|
||||
schedule_job(config.make_backup, 'Backup Tautulli config',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue