Skip to content

Commit

Permalink
force download when previous file is obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaFrancis committed Oct 5, 2023
1 parent 6e19231 commit 2547434
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libs/libapi/src/libapi/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def download_index_file(
local_dir_use_symlinks=False,
token=hf_token,
cache_dir=cache_folder,
force_download=True,
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ def compute_descriptive_statistics_response(
local_dir_use_symlinks=False,
token=hf_token,
cache_dir=local_parquet_directory,
force_download=True,
)

local_parquet_glob_path = Path(local_parquet_directory) / config / f"{split}/*.parquet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def compute_index_rows(
local_dir_use_symlinks=False,
token=hf_token,
cache_dir=duckdb_index_file_directory,
force_download=True,
)

all_split_parquets = f"{duckdb_index_file_directory}/{config}/{split_directory}/*.parquet"
Expand Down

0 comments on commit 2547434

Please sign in to comment.