Skip to content

Commit

Permalink
Merge pull request #168 from alan-turing-institute/pulumi-retries
Browse files Browse the repository at this point in the history
Add retries to GithubRepositoryReader
  • Loading branch information
rwood-97 authored Apr 4, 2024
2 parents be3e7e2 + de9e6bf commit 037b8fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 0 additions & 10 deletions azure/production/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,6 @@
resource_group_name=resource_group.name,
restart_policy=containerinstance.ContainerGroupRestartPolicy.ALWAYS,
sku=containerinstance.ContainerGroupSku.STANDARD,
volumes=[
containerinstance.VolumeArgs(
azure_file=containerinstance.AzureFileVolumeArgs(
share_name=file_share.name,
storage_account_key=storage_account_key,
storage_account_name=storage_account.name,
),
name="llama-data",
),
],
)

# Define the container group for the data creation
Expand Down
5 changes: 5 additions & 0 deletions reginald/models/models/llama_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def _load_handbook(self, gh_token: str) -> None:
verbose=False,
concurrent_requests=1,
timeout=60,
retries=3,
filter_file_extensions=([".md"], GithubRepositoryReader.FilterType.INCLUDE),
filter_directories=(["content"], GithubRepositoryReader.FilterType.INCLUDE),
)
Expand All @@ -303,6 +304,7 @@ def _load_rse_course(self, gh_token: str) -> None:
verbose=False,
concurrent_requests=1,
timeout=60,
retries=3,
filter_file_extensions=(
[".md", ".ipynb"],
GithubRepositoryReader.FilterType.INCLUDE,
Expand Down Expand Up @@ -331,6 +333,7 @@ def _load_rds_course(self, gh_token: str) -> None:
verbose=False,
concurrent_requests=1,
timeout=60,
retries=3,
filter_file_extensions=(
[".md", ".ipynb"],
GithubRepositoryReader.FilterType.INCLUDE,
Expand Down Expand Up @@ -359,6 +362,7 @@ def _load_turing_way(self, gh_token: str) -> None:
verbose=False,
concurrent_requests=1,
timeout=60,
retries=3,
filter_file_extensions=([".md"], GithubRepositoryReader.FilterType.INCLUDE),
)
self.documents.extend(turing_way_loader.load_data(branch="main"))
Expand All @@ -385,6 +389,7 @@ def _load_hut23(self, gh_token: str) -> None:
verbose=False,
concurrent_requests=1,
timeout=60,
retries=3,
filter_file_extensions=(
[".md", ".ipynb"],
GithubRepositoryReader.FilterType.INCLUDE,
Expand Down

0 comments on commit 037b8fb

Please sign in to comment.