Skip to content

Commit

Permalink
Try retrying to resolve intermittent failures (#89)
Browse files Browse the repository at this point in the history
* Try retrying to resolve intermittent failures

* Config adjustments
  • Loading branch information
olaughter authored Jan 31, 2024
1 parent 91cff61 commit fbb08e7
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 7 deletions.
4 changes: 4 additions & 0 deletions cli/index_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
import sys
import time
import logging
import logging.config
from pathlib import Path
Expand Down Expand Up @@ -119,7 +120,10 @@ def run_as_cli(
tasks, embedding_dir_as_path = _get_index_tasks(
indexer_input_dir, s3, files_to_index, limit
)
start = time.time()
populate_vespa(tasks=tasks, embedding_dir_as_path=embedding_dir_as_path)
duration = time.time() - start
_LOGGER.info(f"Vespa indexing completed after: {duration}s")
sys.exit(0)
_LOGGER.error(f"Unknown index type: {index_type}")
sys.exit(1)
Expand Down
Loading

0 comments on commit fbb08e7

Please sign in to comment.