Skip to content

Commit

Permalink
fixed timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlu1248 committed Jun 23, 2023
1 parent f5cb511 commit c08b276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/vector_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def get_deeplake_vs_from_repo(
logger.error("No documents found in repository")
return deeplake_vs

@stub.function(image=image, secrets=secrets, timeout=15 * 60, shared_volumes={DISKCACHE_DIR: model_volume}, timeout=timeout)
@stub.function(image=image, secrets=secrets, shared_volumes={DISKCACHE_DIR: model_volume}, timeout=timeout)
def init_index(
repo_name: str,
installation_id: int,
Expand All @@ -239,7 +239,7 @@ def init_index(
pass


@stub.function(image=image, secrets=secrets, timeout=30 * 60, shared_volumes={DISKCACHE_DIR: model_volume}, timeout=timeout)
@stub.function(image=image, secrets=secrets, shared_volumes={DISKCACHE_DIR: model_volume}, timeout=timeout)
def update_index(
repo_name,
installation_id: int,
Expand Down

0 comments on commit c08b276

Please sign in to comment.