Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use existing job queuing system for downloads #9

Open
deldesir opened this issue Nov 1, 2023 · 3 comments
Open

Use existing job queuing system for downloads #9

deldesir opened this issue Nov 1, 2023 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@deldesir
Copy link
Collaborator

deldesir commented Nov 1, 2023

Describe the bug/problem

Calibre-Web currently has apscheduler for managing various tasks, including format conversions, uploads, and metadata-related activities. While the present job queuing system functions adequately, there's a need to further optimize and adapt this mechanism specifically for download tasks.

The existing job queuing mechanism, for its general functionality and reliability, can be retained and optimized to better accommodate and efficiently manage download-related tasks within the Calibre-Web environment per feature #7.

The following changes are proposed:

  1. Fine-tuning for Downloads: Optimize the current job queue to better handle and prioritize download-related tasks.
  2. Load Distribution: Explore methods to evenly distribute and manage the load when handling concurrent or multiple downloads.
  3. Error Handling and Monitoring: Enhance error handling and monitoring within the job queuing system to ensure the smooth execution of download tasks.

To Reproduce

There is no specific bug to reproduce; this issue pertains to code consistency and best practices within the Calibre-Web project.

Expected behavior

By optimizing the current job queuing mechanism specifically for download tasks, the goal is to ensure smoother and more efficient download operations while maintaining the reliability and stability of the existing system.

Environment (please complete the following information):

Additional Context

The intention is to build upon the strengths of the current job queuing system, ensuring it's well-suited for download-related tasks without requiring a complete overhaul. This approach aims to maintain compatibility and stability while improving the efficiency of download task management within Calibre-Web.

@deldesir deldesir added the enhancement New feature or request label Nov 1, 2023
@holta holta added the documentation Improvements or additions to documentation label Nov 4, 2023
@deldesir deldesir self-assigned this Nov 6, 2023
@deldesir
Copy link
Collaborator Author

deldesir commented Nov 7, 2023

Implemented in #10 and #18

@deldesir deldesir closed this as completed Nov 7, 2023
@holta
Copy link
Member

holta commented Nov 7, 2023

Possible follow-ups:

  1. FFmeg for generating missing covers
  2. Post-process videos/thumbnails ?
  3. Banner auto-cropping, similar to youtube2zim ?

@holta
Copy link
Member

holta commented Jan 2, 2024

Tangentially related questions around how educators/parents/curriculum designers can monitor their ongoing "Download to IIAB" downloads' progress:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants