Skip to content

[Enhancement] Network Resilience Enhancement for Downloads #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Vaibhav701161
Copy link

@Vaibhav701161 Vaibhav701161 commented Mar 11, 2025

fixes #46

Description:

This PR introduces a utility function to improve the reliability of downloads by adding automatic retries, ensuring resilience against temporary network failures.

Key Changes:

  • Added utils.sh with:
    • download_with_retry: Handles downloads with configurable retry attempts and delays.
    • extract_with_validation: Ensures archives are valid before extraction.
  • Updated data/init.sh and study/init.sh to utilize the new utility functions for downloading and extracting files.
  • Improved error handling and logging to provide better debugging information.

Testing:

  • Verified retry logic by simulating network failures.
  • Successfully tested normal execution with valid URLs.

WhatsApp Image 2025-03-12 at 02 26 07_e7659496

This enhancement ensures more stable and reliable downloads, reducing failures due to intermittent network issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants