mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-24 16:54:43 +00:00
test(gateway): account for the auto-archive construction-time sync escape
The gateway startup maintenance block gained a maybe_auto_archive call in the same provably-off-loop __init__ site as maybe_auto_prune_and_vacuum; bump the reviewed sync-escape count from 3 to 4.
This commit is contained in:
parent
107843877f
commit
4cd4b3e8a2
1 changed files with 4 additions and 2 deletions
|
|
@ -125,8 +125,10 @@ _GATEWAY_FILES = ("gateway/run.py", "gateway/slash_commands.py")
|
|||
# - self._session_db._db.<x>: the sync escape, allowed ONLY where the call is
|
||||
# provably off the event loop — construction (__init__, before the loop
|
||||
# serves) and the run_sync closure (executed in a thread-pool executor).
|
||||
# Three such sites today; a fourth must be justified and this count bumped.
|
||||
_ALLOWED_SYNC_DB_ESCAPES = 3
|
||||
# Four such sites today (maybe_auto_archive joined maybe_auto_prune_and_vacuum
|
||||
# in the construction-time maintenance block); a fifth must be justified and
|
||||
# this count bumped.
|
||||
_ALLOWED_SYNC_DB_ESCAPES = 4
|
||||
|
||||
# Sync helpers that touch SessionDB but are NEVER invoked bare on the loop:
|
||||
# every loop-side call wraps them in ``asyncio.to_thread(...)`` and the only
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue