Skip to content

Add resume capability for failed uploads #45

Closed

Description

@neuromechanist

Summary

If DataLad/git-annex/S3 upload fails mid-way, users cannot resume. They must start over with a new dataset ID.

Proposed Solution

nemar dataset upload should:

  1. Detect existing dataset (by path or dataset ID)
  2. Check what's already on GitHub and S3
  3. Resume/sync rather than fail

git-annex handles this natively with git annex copy (only copies missing files).

Implementation

  1. Check if dataset already exists:
    • Look for .datalad directory
    • Query backend for dataset status
  2. If resuming:
    • Clone existing repo (if not present locally)
    • Compare local files with S3 (git annex whereis)
    • Upload only missing files
  3. Handle edge cases:
    • Partial git push (local commits not on remote)
    • Partial S3 upload (some files missing)
    • Metadata updates (changes to JSON sidecars)

Related

Parent Issue

Part of #41

Activity

  1. added 2 commits that reference this issue on Jan 21, 2026
    4df386f
    ee06199
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions