class documentation
class ServiceClient(ABC): (source)
Known subclasses: temporalio.service._BridgeServiceClient
Constructors: ServiceClient.connect(config), ServiceClient(config)
Direct client to Temporal services.
| Async Static Method | connect |
Connect directly to Temporal services. |
| Method | __init__ |
Initialize the base service client. |
| Async Method | check |
Check whether the WorkflowService is up. |
| Method | update |
Update service client's API key. |
| Method | update |
Update service client's RPC metadata. |
| Instance Variable | cloud |
Undocumented |
| Instance Variable | config |
Undocumented |
| Instance Variable | health |
Undocumented |
| Instance Variable | operator |
Undocumented |
| Instance Variable | test |
Undocumented |
| Instance Variable | workflow |
Undocumented |
| Property | worker |
Underlying service client. |
| Async Method | _rpc |
Undocumented |
async def check_health(self, *, service:
str = 'temporal.api.workflowservice.v1.WorkflowService', retry: bool = False, metadata: Mapping[ str, str | bytes] = {}, timeout: timedelta | None = None) -> bool:
(source)
¶
Check whether the WorkflowService is up.
In addition to accepting which service to check health on, this accepts
some of the same parameters as other RPC calls. See
ServiceCall.__call__.
| Returns | |
bool | True when available, false if the server is running but the service is unavailable (rare), or raises an error if server/service cannot be reached. |
@abstractmethod
async def _rpc_call(self, rpc:
async def _rpc_call(self, rpc:
str, req: google.protobuf.message.Message, resp_type: type[ ServiceResponse], *, service: str, retry: bool, metadata: Mapping[ str, str | bytes], timeout: timedelta | None) -> ServiceResponse:
(source)
¶
overridden in
temporalio.service._BridgeServiceClientUndocumented