feat: parallel exports download + progress bar - #21
Merged
Conversation
`wk exports download` now fetches clips concurrently (default 8, tune via `--concurrency`) and renders an animated `[████░░] cur/total · M:SS` bar instead of printing every-25 status lines. The previous "single- threaded by design" comment was based on a misread of the platform — clip GETs go through a Cloudflare Worker which scales across isolates, so concurrency is a real win. Skipped clips (`--force=false` resume) tick the bar immediately so already-downloaded files don't make progress look stalled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wk exports downloadfetches clips concurrently (--concurrency, default 8) instead of one-at-a-timeProgressBarinsrc/progress.rsrenders[████░░] cur/total · M:SSon stderr; old "downloaded N clip(s)…" lines removedAGENTS.mdquirks updated; the "single-threaded by design" claim was wrong — Workers scale across isolates per region, so concurrency is a real winTest plan
cargo test— 35 passed (3 new bar render tests)cargo buildcleanwk exports download <id>against a real export, verify bar animates and--concurrency 1falls back to serial behaviorNO_COLOR=1 wk exports download <id>prints no bar; non-TTY pipe stays clean--force=falseimmediately ticks skipped clips toward total