Skip to content

Commit

Permalink
Reduce sleep time in Writer class during retries; update version to 0…
Browse files Browse the repository at this point in the history
….9.1.4 in pyproject.toml
  • Loading branch information
legout committed Dec 4, 2024
1 parent 2bef87b commit 12dc592
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pydala/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import polars.selectors as cs
import pyarrow as pa
import pyarrow.dataset as pds

# import pyarrow.dataset as pds
import pyarrow.parquet as pq
from fsspec import AbstractFileSystem
Expand Down Expand Up @@ -385,7 +386,8 @@ def write_to_dataset(
if retries == 2:
raise e
self.clear_cache()
time.sleep(0.5)
time.sleep(0.1)
create_dir = False

def clear_cache(self) -> None:
"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name = "pydala2"
readme = "README.md"
repository = "https://github.com/legout/pydala2"
requires-python = ">= 3.10"
version = "0.9.1.3"
version = "0.9.1.4"

[project.optional-dependencies]
legacy = ["polars-lts-cpu>=0.20.4"]
Expand Down

0 comments on commit 12dc592

Please sign in to comment.