Skip to content

feature: add configurable HTTP retry strategy with exponential backoff for network requests #91

Description

@yush-1018

Feature Request

Describe the feature you'd like
Implement a centralized HTTP requests.Session with urllib3.util.Retry configured for exponential backoff and jitter, and expose --max-retries and --request-timeout options across CLI commands.

Why is this feature important?
Currently, download.py, deploy.py, delete.py, and webdav.py use direct requests.get(), requests.post(), and requests.delete() calls without automated retry handling.
During large dataset downloads, WebDAV uploads, or Databus SPARQL queries:

  • Transient network drops, 429 Rate Limits, or 502/503/504 gateway timeouts cause the execution to crash abruptly without retrying.

Describe alternatives you've considered
Users must manually re-run failed CLI commands from scratch, which wastes network bandwidth during multi-gigabyte dataset downloads.

Additional context

  • Affected files: databusclient/api/utils.py, download.py, deploy.py, and extensions/webdav.py.
  • Recommended retry status codes: [429, 500, 502, 503, 504].
  • Expose --max-retries (default: 3) and --request-timeout (default: 30s) as CLI flags.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions