Skip to content

Commit

Permalink
Update huggingface.py
Browse files Browse the repository at this point in the history
  • Loading branch information
guipenedo authored Sep 11, 2024
1 parent 9142e3e commit c7f6f51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/datatrove/pipeline/writers/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def close(self, rank: int = 0):
logger.info("Commit creation race condition issue. Waiting...")
time.sleep(BASE_DELAY * 2**retries + random.uniform(0, 2))
retries += 1
else:
raise e

def _on_file_switch(self, original_name, old_filename, new_filename):
"""
Expand Down

0 comments on commit c7f6f51

Please sign in to comment.