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
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:
parent
354ed9ce3c
commit
793beb1571
3 changed files with 68 additions and 22 deletions
9
app.py
9
app.py
|
@ -201,10 +201,11 @@ else:
|
|||
os.makedirs("models", exist_ok=True)
|
||||
logger.info("Ensured models directory exists")
|
||||
|
||||
# Initialize stream manager with config value
|
||||
from core.streaming import initialize_stream_manager
|
||||
initialize_stream_manager(max_streams=config.get('max_streams', 10))
|
||||
logger.info(f"Initialized stream manager with max_streams={config.get('max_streams', 10)}")
|
||||
# Stream manager already initialized at module level with max_streams=20
|
||||
# Calling initialize_stream_manager() creates a NEW instance, breaking references
|
||||
# from core.streaming import initialize_stream_manager
|
||||
# initialize_stream_manager(max_streams=config.get('max_streams', 10))
|
||||
logger.info(f"Using stream manager with max_streams=20 (module-level initialization)")
|
||||
|
||||
# Frames are now stored in the shared cache buffer from core.streaming.buffers
|
||||
# latest_frames = {} # Deprecated - using shared_cache_buffer instead
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue