Skip to content

Commit

Permalink
Delete unneeded OpenSearch tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Jun 14, 2024
1 parent 71b1c85 commit 6171def
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion radis/core/management/commands/populate_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def create_reports(language: Literal["en", "de"], group: Group):
def create_documents() -> None:
if settings.OPENSEARCH_ENABLED:
start = time.time()
create_opensearch_documents([report.id for report in reports])
create_opensearch_documents(reports)
print(f"Fed {len(reports)} reports to OpenSearch in {time.time() - start:.2f} seconds.")

if settings.VESPA_ENABLED:
Expand Down
22 changes: 0 additions & 22 deletions radis/opensearch/tasks.py

This file was deleted.

0 comments on commit 6171def

Please sign in to comment.