>_
.issue.db
/highway-workflow-engine
Dashboard
Issues
Memory
Lessons
Audit Log
New Issue
Edit Issue #511
Update issue details
Title *
Description
**File:** engine/config.py:337-365 **Problem:** Missing lock for singleton initialization. Two threads could both see None, both create storage instances, causing connection pool leaks. **Severity:** HIGH **Fix:** Use double-check locking pattern: ```python _cb_storage_lock = threading.Lock() def _get_circuit_breaker_storage() -> PostgresStorage: global _circuit_breaker_storage if _circuit_breaker_storage is not None: return _circuit_breaker_storage with _cb_storage_lock: if _circuit_breaker_storage is not None: return _circuit_breaker_storage _circuit_breaker_storage = PostgresStorage(...) return _circuit_breaker_storage ``` **Impact:** Connection leaks on worker startup race.
Priority
Low
Medium
High
Critical
Status
Open
In Progress
Closed
Won't Do
Due Date (YYYY-MM-DD)
Tags (comma separated)
Related Issues (IDs)
Enter IDs of issues related to this one. They will be linked as 'related'.
Update Issue
Cancel