diff --git a/bd_api/apps/api/v1/tasks.py b/bd_api/apps/api/v1/tasks.py index adcdbfc2..a29d6885 100644 --- a/bd_api/apps/api/v1/tasks.py +++ b/bd_api/apps/api/v1/tasks.py @@ -23,6 +23,12 @@ def update_table_metadata_task(): update_table_metadata() +@prod_task +@periodic_task(crontab(day_of_week="1-6", hour="5", minute="0")) +def update_search_index_task(): + call_command("update_index", batchsize=100, workers=4) + + @prod_task @periodic_task(crontab(day_of_week="0", hour="5", minute="0")) def rebuild_search_index_task():