Skip to content

Commit

Permalink
feat: add update search index task (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna authored Nov 23, 2023
1 parent ce11889 commit 88a9767
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bd_api/apps/api/v1/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 88a9767

Please sign in to comment.