mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-11 12:17:45 +02:00
[haik]: stop importing TERMINAL_STATUSES from seq_log.py and define it as a local constant in ws_manager.py — seq_log renamed it to P_TERMINAL_STATUSES (private), so ws_manager now owns its own copy to avoid a cross-module coupling on session lifecycle states
This commit is contained in:
@@ -15,8 +15,6 @@ logger = logging.getLogger(__name__)
|
||||
# 500 events covers a 30s drop even at ~20Hz thinking deltas (~50KB/session).
|
||||
P_BUFFER_LIMIT = 500
|
||||
|
||||
P_TERMINAL_STATUSES = {"completed", "stopped", "error"}
|
||||
|
||||
|
||||
class P_SessionSeqLog:
|
||||
"""Per-session lock + monotonic seq + recent-event ring buffer."""
|
||||
|
||||
@@ -3,7 +3,9 @@ import json
|
||||
import logging
|
||||
from fastapi import WebSocket
|
||||
|
||||
from backend.apps.agents.core.seq_log import TERMINAL_STATUSES, SEQ_LOG
|
||||
from backend.apps.agents.core.seq_log import SEQ_LOG
|
||||
|
||||
TERMINAL_STATUSES = {"completed", "stopped", "error"}
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user