flower celery

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-10 17:46:37 +00:00
parent 87d1392b4c
commit 6997702b12
8 changed files with 1096 additions and 0 deletions

View File

@@ -48,6 +48,16 @@ app.conf.beat_schedule = {
'task': 'igny8_core.purge_soft_deleted',
'schedule': crontab(hour=3, minute=15),
},
# Daily application package backup at midnight
'daily-app-package-backup': {
'task': 'backup.create_daily_app_package',
'schedule': crontab(hour=0, minute=0), # Daily at 00:00
},
# Weekly cleanup of old packages (every Monday at 1 AM)
'weekly-package-cleanup': {
'task': 'backup.cleanup_old_packages',
'schedule': crontab(hour=1, minute=0, day_of_week=1), # Monday at 01:00
},
}
@app.task(bind=True, ignore_result=True)