[PR #236] [MERGED] Session per thread in whagodri #241

Closed
opened 2026-02-25 20:35:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/B16f00t/whapa/pull/236
Author: @rational-gamer
Created: 3/23/2025
Status: Merged
Merged: 3/24/2025
Merged by: @B16f00t

Base: masterHead: patch-1


📝 Commits (1)

  • 56c11dc Session per thread in whagodri

📊 Changes

1 file changed (+70 additions, -75 deletions)

View changed files

📝 libs/whagodri.py (+70 -75)

📄 Description

Rework on parallel downloads with database sync in whagodri.

  • one requests.Session per thread, Session with stream=True are not thread safe

  • added -tc, --thread_count THREADCOUNT command line argument, default to 12 (using more cause SSLError)

  • better queue.Queue synchronization handling

  • added support for KeyboardInterrupt in parallel downloads


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/B16f00t/whapa/pull/236 **Author:** [@rational-gamer](https://github.com/rational-gamer) **Created:** 3/23/2025 **Status:** ✅ Merged **Merged:** 3/24/2025 **Merged by:** [@B16f00t](https://github.com/B16f00t) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`56c11dc`](https://github.com/B16f00t/whapa/commit/56c11dcb479c799c83a21d21aeb0c956e483b43a) Session per thread in whagodri ### 📊 Changes **1 file changed** (+70 additions, -75 deletions) <details> <summary>View changed files</summary> 📝 `libs/whagodri.py` (+70 -75) </details> ### 📄 Description Rework on parallel downloads with database sync in whagodri. * one requests.Session per thread, Session with stream=True are not thread safe * added -tc, --thread_count THREADCOUNT command line argument, default to 12 (using more cause SSLError) * better queue.Queue synchronization handling * added support for KeyboardInterrupt in parallel downloads --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 20:35:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whapa#241
No description provided.