Skip to content

Upload scans one at a time and dispatch each as it lands - #120

Merged
Yusufa09 merged 1 commit into
mainfrom
feat/serial-uploads
Aug 3, 2026
Merged

Upload scans one at a time and dispatch each as it lands#120
Yusufa09 merged 1 commit into
mainfrom
feat/serial-uploads

Conversation

@Yusufa09

@Yusufa09 Yusufa09 commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Upload scans one at a time and dispatch each as it lands

  • Serialize multi-file uploads instead of running every file's 6 chunk streams at once; concurrency there didn't add bandwidth, it just made every file finish at the same late moment while the GPU sat idle.
  • Keep dispatching each scan the instant its own upload finalizes, so the server's queue starts on scan 1 while scan 2 is still uploading.
  • Keep the IndexedDB record through finalize (flagged uploaded, blob dropped) so a tab closed before dispatch replays just the inference call rather than failing a file the server already holds.
  • Add a "safe to close" hint with a live ETA on the in-flight card.
  • Cover the scheduling in uploadScheduling.test.tsx.

Upload scans one at a time and dispatch each as it lands

- Serialize multi-file uploads instead of running every file's 6 chunk
  streams at once; concurrency there didn't add bandwidth, it just made
  every file finish at the same late moment while the GPU sat idle.
- Keep dispatching each scan the instant its own upload finalizes, so the
  server's queue starts on scan 1 while scan 2 is still uploading.
- Keep the IndexedDB record through finalize (flagged uploaded, blob
  dropped) so a tab closed before dispatch replays just the inference
  call rather than failing a file the server already holds.
- Add a "safe to close" hint with a live ETA on the in-flight card.
- Cover the scheduling in uploadScheduling.test.tsx.
@Yusufa09
Yusufa09 merged commit 8854e35 into main Aug 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant