Fix credential release on deleted profile and round 3 review items.

Store credential Redis keys at reserve so release works when the profile row is deleted. Return reserve failure reasons to avoid fingerprint DB queries on logging paths. Document unlimited profile bypass in pool logic and Server Group UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Goldenfreddy0703 2026-06-04 19:51:20 -04:00
parent 6e07dce3f1
commit abdf2d7864
7 changed files with 123 additions and 35 deletions

View file

@ -745,7 +745,9 @@ class MultiWorkerVODConnectionManager:
from apps.m3u.connection_pool import reserve_profile_slot
try:
reserved, new_count = reserve_profile_slot(m3u_profile, self.redis_client)
reserved, new_count, _failure_reason = reserve_profile_slot(
m3u_profile, self.redis_client
)
if reserved:
logger.info(
f"[PROFILE-RESERVE] Profile {m3u_profile.id} slot reserved: "