From 4ff9f44eaed9be640d9a6a6feea88b097857d595 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 13 Jan 2024 19:31:15 +0100 Subject: [PATCH] Don't need to rebuild the ES index periodically, do it only once Signed-off-by: Emmy D'Anello --- entrypoint.sh | 1 + tfjm.cron | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index dea42a9..255e6bc 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,6 +4,7 @@ crond -l 0 python manage.py migrate python manage.py loaddata initial +python manage.py update_index nginx diff --git a/tfjm.cron b/tfjm.cron index bceb9ee..4d01caa 100644 --- a/tfjm.cron +++ b/tfjm.cron @@ -4,9 +4,6 @@ * * * * * cd /code && python manage.py retry_deferred -c 1 0 0 * * * cd /code && python manage.py purge_mail_log 7 -c 1 -# Rebuild search index -0 * * * * cd /code && python manage.py update_index -v 0 - # Recreate sympa lists */2 * * * * cd /code && python manage.py fix_sympa_lists &> /dev/null