release_slot#
- async RunningReplica.release_slot(slot_token: str) int[source]#
Release a previously reserved slot.
This should be called if a request is not dispatched after reserving a slot (e.g., due to an error or cancellation).
Returns the replica’s reported num_ongoing_requests after the release.
- Parameters:
slot_token (str) – The token that
reserve_slotreturned.- Returns:
The replica’s number of ongoing requests after the release.
- Raises:
RuntimeError – If the replica is a Java replica.
- Return type: