v1.2.20: remaining Codex fixes — _op_results lock, advisory lock for scenarios, _ensure_schema logging, stale async generation token, validate-cfs explicit JSONDecodeError

This commit is contained in:
2026-07-31 18:07:24 +04:00
parent 58b823a260
commit 5065019ffd
7 changed files with 222 additions and 172 deletions
+5 -2
View File
@@ -58,8 +58,11 @@ def _ensure_schema():
from db.init_db import init_db
init_db()
_initialized = True
except Exception:
pass # без БД приложение работает (без истории)
except Exception as e:
print(f"[DB] Schema init FAILED: {e}", flush=True)
import traceback
traceback.print_exc()
# Приложение продолжает работу БЕЗ БД (без истории/сценариев)
def get_pool():