fix: tracking works but absent not work
All checks were successful
Build Worker Base and Application Images / check-base-changes (push) Successful in 7s
Build Worker Base and Application Images / build-base (push) Has been skipped
Build Worker Base and Application Images / build-docker (push) Successful in 2m26s
Build Worker Base and Application Images / deploy-stack (push) Successful in 13s

This commit is contained in:
ziesorx 2025-09-30 16:04:24 +07:00
parent 354ed9ce3c
commit 793beb1571
3 changed files with 68 additions and 22 deletions

View file

@ -197,18 +197,24 @@ class WebSocketHandler:
async def _handle_set_subscription_list(self, message: SetSubscriptionListMessage) -> None:
"""Handle setSubscriptionList message for declarative subscription management."""
logger.info(f"[RX Processing] setSubscriptionList with {len(message.subscriptions)} subscriptions")
logger.info(f"🎯 [RX Processing] setSubscriptionList with {len(message.subscriptions)} subscriptions")
for i, sub in enumerate(message.subscriptions):
logger.info(f" 📋 Sub {i+1}: {sub.subscriptionIdentifier} (model: {sub.modelId})")
# Update worker state with new subscriptions
worker_state.set_subscriptions(message.subscriptions)
# Phase 2: Download and manage models
logger.info("📦 Starting model download phase...")
await self._ensure_models(message.subscriptions)
logger.info("✅ Model download phase complete")
# Phase 3 & 4: Integrate with streaming management and tracking
logger.info("🎬 Starting stream subscription update...")
await self._update_stream_subscriptions(message.subscriptions)
logger.info("✅ Stream subscription update complete")
logger.info("Subscription list updated successfully")
logger.info("🏁 Subscription list updated successfully")
async def _ensure_models(self, subscriptions) -> None:
"""Ensure all required models are downloaded and available."""