Commit 8ba47780 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

check files integrity every sunday

parent db9ea8e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -366,7 +366,7 @@ def denorm_sizes():
            logger.warning(f"can't decompress {file.pk}")


@db_periodic_task(crontab(day="1"))
@db_periodic_task(crontab(day_of_week="0", hour="2", minute="0"))
def check_files_integrity():
    logger.info("file integrity check...")
    if not settings.JAMA_PERIODIC_FILE_INTEGRITY_CHECK: