1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00
weblate_ynh/conf/cron
Jean-Baptiste Holcroft 5b9befd66a Improve cron file
2018-06-13 23:49:24 +02:00

9 lines
551 B
Text

# https://docs.weblate.org/en/latest/admin/install.html#production-cron
# Fulltext index updates
*/5 * * * * __APP__ export DJANGO_SETTINGS_MODULE="weblate.settings" && cd __FINALPATH__ && venv/bin/weblate update_index
# Cleanup stale objects
@daily __APP__ export DJANGO_SETTINGS_MODULE="weblate.settings" && cd __FINALPATH__ && venv/bin/weblate cleanuptrans
# Commit pending changes after 96 hours
@hourly __APP__ export DJANGO_SETTINGS_MODULE="weblate.settings" && cd __FINALPATH__ && venv/bin/weblate commit_pending --all --age=96 --verbosity=0