>_
.issue.db
/highway-workflow-engine
Dashboard
Issues
Memory
Lessons
Audit Log
New Issue
Edit Issue #512
Update issue details
Title *
Description
**File:** engine/config.py:640-661 **Problem:** TOCTOU between cache snapshot and cleanup - another thread could add/remove keys between snapshot creation and deletion, causing KeyError. **Severity:** HIGH **Fix:** Ensure entire operation happens under lock: ```python with _config_lock: cache_items = list(_tenant_config_instances.items()) oldest_entries = heapq.nsmallest(to_remove, cache_items, key=lambda x: x[1][1]) for key, _ in oldest_entries: if key in _tenant_config_instances: del _tenant_config_instances[key] ``` **Impact:** KeyError crashes during cache eviction.
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