Skip to content

Improve get_waiting_tasks#1395

Merged
tcely merged 2 commits intomainfrom
tcely-batched-inserts
Feb 26, 2026
Merged

Improve get_waiting_tasks#1395
tcely merged 2 commits intomainfrom
tcely-batched-inserts

Conversation

@tcely
Copy link
Collaborator

@tcely tcely commented Feb 25, 2026

Testing:

docker pull ghcr.io/meeb/tubesync:test@sha256:e279927728de19f644b6b3bf7b81b2ad91257093d5361bfd3faf511b1afe1a1a
  • Switch to a generator in get_waiting_tasks

  • Faster checking for empty task queues

  • Use batches of 40,000 inserts

  • Add the is_empty_iterator function to utils.py

* Switch to a generator in `get_waiting_tasks`

* Faster checking for empty task queues

* Use batches of 40,000 inserts

* Add the `is_empty_iterator` function to utils.py
@tcely tcely marked this pull request as ready for review February 25, 2026 01:54
@tcely tcely requested a review from meeb February 25, 2026 01:54
@tcely tcely moved this to Ready in Status Feb 25, 2026
@tcely tcely self-assigned this Feb 25, 2026
@tcely tcely merged commit 70320d2 into main Feb 26, 2026
12 checks passed
@tcely tcely deleted the tcely-batched-inserts branch February 26, 2026 09:21
@github-project-automation github-project-automation bot moved this from Ready to Done in Status Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants