misc: run clean drafts job once a day (#49124)

This commit is contained in:
Frédéric Péters 2020-12-04 11:09:28 +01:00
parent 0dd771dae6
commit acc2432fc8
1 changed files with 4 additions and 3 deletions

View File

@ -1712,11 +1712,12 @@ def get_formdefs_of_all_kinds():
if get_publisher_class():
# once a month, look for drafts to remove
# once a day, look for:
# * expired drafts
get_publisher_class().register_cronjob(CronJob(clean_drafts,
name='clean_drafts',
days=[2], hours=[0], minutes=[0]))
# once a day, look for unused files
hours=[2], minutes=[0]))
# * unused files
get_publisher_class().register_cronjob(CronJob(clean_unused_files,
name='clean_unused_files',
hours=[2], minutes=[0]))