Skip to content

Commit

Permalink
Nolan/await update files (#1461)
Browse files Browse the repository at this point in the history
* Ensure that we await ingest files in ingest_files method

* Await update files as well
  • Loading branch information
NolanTrem authored Oct 23, 2024
1 parent d74b7ff commit f6e2789
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 @@ -109,7 +109,7 @@ async def ingest_files(
"--run-without-orchestration", is_flag=True, help="Run with orchestration"
)
@pass_context
def update_files(
async def update_files(
ctx, file_paths, document_ids, metadatas, run_without_orchestration
):
"""Update existing files in R2R."""
Expand All @@ -129,7 +129,7 @@ def update_files(
"Metadatas must be a JSON string representing a list of dictionaries or a single dictionary"
)
run_with_orchestration = not run_without_orchestration
response = client.update_files(
response = await client.update_files(
file_paths,
document_ids,
metadatas,
Expand Down

0 comments on commit f6e2789

Please sign in to comment.