get_queue_len#

async RunningReplica.get_queue_len(*, deadline_s: float) → int[source]#

Returns current queue len for the replica. deadline_s is passed to verify backoff for testing.

Parameters:

deadline_s (float) – Deadline, in seconds, for the replica to respond. This implementation doesn’t use it.

Returns:

The number of requests ongoing on the replica.

Return type:

int