tff.framework.executors_errors.RetryableGRPCError

Stay organized with collections Save and categorize content based on your preferences.

Raised when execution fails across a gRPC connection and can be retried.

Inherits From: RetryableError

Methods

add_callback

Registers a callback to be called on RPC termination.

Args
callback A no-parameter callable to be called on RPC termination.

Returns
True if the callback was added and will be called later; False if the callback was not added and will not be called (because the RPC already terminated or some other reason).

cancel

Cancels the RPC.

Idempotent and has no effect if the RPC has already terminated.

code

View source

Accesses the status code sent by the server.

This method blocks until the value is available.

Returns
The StatusCode value for the RPC.

details

View source

Accesses the details sent by the server.

This method blocks until the value is available.

Returns
The details string of the RPC.

initial_metadata

View source

Accesses the initial metadata sent by the server.

This method blocks until the value is available.

Returns
The initial :term:metadata.

is_active

Describes whether the RPC is active or has terminated.

Returns
bool True if RPC is active, False otherwise.

time_remaining

Describes the length of allowed time remaining for the RPC.

Returns
A nonnegative float indicating the length of allowed time in seconds remaining for the RPC to complete before it is considered to have timed out, or None if no deadline was specified for the RPC.

trailing_metadata

View source

Accesses the trailing metadata sent by the server.

This method blocks until the value is available.

Returns
The trailing :term:metadata.