arun • AI Agent SDK

arun: Run checks without blocking an async caller's event loop.

arun

Async

Method

</div>

This is a method of the HealthCheckRegistry class in the health_registry module.

Run checks without blocking an async caller’s event loop.

Checks may provide `adetect and arepair coroutine methods. Synchronous implementations are isolated with asyncio.to_thread`.

Signature

python
async def arun(context: Mapping[str, Any]) -> List[HealthCheckResult]

Parameters

ParamField Mapping[str, Any]

No description available.

Returns

ResponseField List[HealthCheckResult]

The result of the operation.

Uses

  • callable
  • async_fn
  • inspect.isawaitable
  • asyncio.to_thread
  • get_checks
  • HealthCheckResult
  • Finding
  • TypeError

Used By

Source

View on GitHub

praisonaiagents/runtime/health_registry.py at line 137