feat: add durable run listing

This commit is contained in:
lda
2026-06-11 17:54:19 +07:00 Verified
parent a9ba32c8d7
commit 094a4f726b
15 changed files with 413 additions and 5 deletions
+16
View File
@@ -10,6 +10,22 @@ from .base import RpcCaller
class RpcRunClientMixin:
"""JSON-RPC implementation of workflow run lifecycle surface methods."""
async def list_runs(
self: RpcCaller,
*,
status: str | None = None,
cursor: str | None = None,
limit: int = 50,
) -> dict[str, Any]:
return await self._call(
"workflow.runs.list",
{
"status": status,
"cursor": cursor,
"limit": limit,
},
)
async def run_deployment(
self: RpcCaller,
*,