Skip to content

Commit

Permalink
Ensure that we await ingest files in ingest_files method (#1460)
Browse files Browse the repository at this point in the history
  • Loading branch information
NolanTrem authored Oct 23, 2024
1 parent 7b182fd commit d74b7ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/cli/commands/ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def ingest_files_from_urls(client, urls):
"--run-without-orchestration", is_flag=True, help="Run with orchestration"
)
@pass_context
def ingest_files(
async def ingest_files(
ctx, file_paths, document_ids, metadatas, run_without_orchestration
):
"""Ingest files into R2R."""
Expand All @@ -84,7 +84,7 @@ def ingest_files(
file_paths = list(file_paths)
document_ids = list(document_ids) if document_ids else None
run_with_orchestration = not run_without_orchestration
response = client.ingest_files(
response = await client.ingest_files(
file_paths,
metadatas,
document_ids,
Expand Down

0 comments on commit d74b7ff

Please sign in to comment.