-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hey team! 👋
I’ve been working on an enhanced version of our fetch_databus_assest.sh script and wanted to propose some neat new features that make downloads more robust and logging more informative. Here’s what’s new in fetch_databus_assest.sh compared to the previous version:
New Features
- Resume support for interrupted downloads
-
--resumeflag allows downloads to resume from where they left off. -
Works for both Vault and non-Vault downloads.
-
Helpful for large artifacts or flaky network conditions.
- Retry logic for non-Vault downloads
-
--retry-count Nlets users specify how many times a file should be retried if a download fails (default: 3). -
Retry attempts include brief delays and helpful logs.
- Improved logging with timestamps
-
Added log_timestamp and log_info helpers.
-
All info logs now include timestamps for easier debugging and tracking progress.
These are minor CLI updates
Updated usage message to include the new flags.
Debug and dry-run behavior remain unchanged.
These changes should make the script more resilient in real-world scenarios, especially when fetching large or multiple files. The new flags are fully optional, so existing workflows aren’t broken.
Would love to get a PR review and check this in so everyone can benefit from smoother downloads!