Skip to content

Enhancement: Resume Support, Retry Logic, and Timestamped Logging for fetch_databus_assest.sh #1

@spyke7

Description

@spyke7

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

  1. Resume support for interrupted downloads
  • --resume flag 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.

  1. Retry logic for non-Vault downloads
  • --retry-count N lets users specify how many times a file should be retried if a download fails (default: 3).

  • Retry attempts include brief delays and helpful logs.

  1. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions