feat: harden multi-account backend and add tests
This commit is contained in:
@@ -13,6 +13,14 @@ def health_payload(
|
||||
job_queue_size: int,
|
||||
account_ids: Optional[List[str]] = None,
|
||||
) -> Dict[str, Any]:
|
||||
"""
|
||||
Return a health-check payload for the application.
|
||||
|
||||
NOTE: This endpoint does NOT support message search or query parameters.
|
||||
Health concerns itself with filesystem, database connectivity, job queue,
|
||||
and account session state. Message search is handled by the message API
|
||||
endpoints (/api/channels/*/messages, /api/accounts/*/channels/*/messages).
|
||||
"""
|
||||
checks = {
|
||||
"data_dir": _dir_check(data_dir, writable=True),
|
||||
"session_dir": _dir_check(session_dir, writable=True),
|
||||
|
||||
Reference in New Issue
Block a user