Skip to content

Add configurable parallel downloads#25

Open
nittanygeek wants to merge 3 commits into
RobXYZ:mainfrom
nittanygeek:parallel-downloads
Open

Add configurable parallel downloads#25
nittanygeek wants to merge 3 commits into
RobXYZ:mainfrom
nittanygeek:parallel-downloads

Conversation

@nittanygeek

Copy link
Copy Markdown

Summary

  • add a configurable DOWNLOAD_CONCURRENCY setting for 1-4 simultaneous downloads
  • change the sync worker from fixed batches to a rolling pool so slots refill as soon as a file finishes
  • update live progress/session tracking so multiple active downloads render separately and ETA/speed stay sane

Testing

  • PYTHONPATH=. .venv311/bin/python -m pytest tests/test_queue_ro_only.py tests/test_settings_schema.py tests/test_settings_api.py tests/test_sync_worker_cancel.py tests/test_sync_worker_enospc.py tests/test_sync_worker_concurrency.py tests/test_hub.py tests/test_hub_session_stats.py tests/test_download_session.py
  • node --check web/static/app.js

Also tested manually against a Viofo dashcam with DOWNLOAD_CONCURRENCY=4, confirming four active downloads and continuous slot refilling.

image

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