trustgraph/trustgraph-flow
harishkrishna17 cfe7d387a7 gateway: thread --timeout flag into DispatcherManager (fixes #894)
The api-gateway accepts a --timeout flag (default 600s) but
DispatcherManager never received it and instantiated every
per-service dispatcher with a hardcoded timeout=120. The flag
was therefore silently ignored for all per-service paths
(graph-rag, document-rag, librarian, etc.); requests over 120s
returned {"error":{"type":"gateway-error","message":"Timeout"}}
regardless of the configured value.

This adds a timeout parameter to DispatcherManager.__init__
(default 120 to preserve existing behaviour for callers that
don't pass it), stores it on self.timeout, uses it in both
dispatcher construction sites, and threads self.timeout through
from gateway/service.py where DispatcherManager is instantiated.

The default of 120 is preserved so this is a non-breaking
change. Callers that already pass timeout (none upstream today)
continue to work.
2026-05-09 07:02:02 +00:00
..
trustgraph gateway: thread --timeout flag into DispatcherManager (fixes #894) 2026-05-09 07:02:02 +00:00
pyproject.toml feat: IAM service, gateway auth middleware, capability model, and CLIs (#849) 2026-04-24 17:29:10 +01:00
README.md Maint/fix build env (#84) 2024-09-30 19:47:09 +01:00