Automattic / hostmgr

A tool for managing macOS VM hosts
Mozilla Public License 2.0
9 stars 3 forks source link

Support Resumable uploads during `vm publish` #86

Closed AliSoftware closed 6 months ago

AliSoftware commented 6 months ago

Feature Suggestion

VMs are quite large files even after being .aar'd, so it's not uncommon to have vm publish either fail or get stale depending on the speed and stability of your internet connection.

As such, it would be nice for hostmgr vm publish to support resuming a failed upload.

Draft Implementation Idea

We should be able to use the ListMultipartUploads API to find if there's an existing upload for the given --bucket and --prefix of the file we're about to upload (pick the most recent if there are more than one).

Then if we find an existing upload matching the prefix: