Merge pull request 'fix: wrong function name' (#14) from dev into main
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 2m53s
Build Worker Base and Application Images / deploy-stack (push) Successful in 7s
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 2m53s
Build Worker Base and Application Images / deploy-stack (push) Successful in 7s
Reviewed-on: #14
This commit is contained in:
commit
f9a67935d6
1 changed files with 5 additions and 2 deletions
|
@ -466,7 +466,10 @@ def initialize_stream_manager(max_streams: int = 10):
|
|||
global shared_stream_manager
|
||||
# Release old manager if exists
|
||||
if shared_stream_manager:
|
||||
# Stop all existing streams gracefully
|
||||
shared_stream_manager.cleanup()
|
||||
try:
|
||||
# Stop all existing streams gracefully
|
||||
shared_stream_manager.stop_all()
|
||||
except Exception as e:
|
||||
logger.warning(f"Error stopping previous stream manager: {e}")
|
||||
shared_stream_manager = StreamManager(max_streams=max_streams)
|
||||
return shared_stream_manager
|
Loading…
Add table
Add a link
Reference in a new issue