latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
tensorplay.distributed.elastic.timer API
Functions 2
configure
functionFull reference ↗- tensorplay.distributed.elastic.timer.configure(timer_client: TimerClient) None[source]
Set the process-wide default
TimerClient.
expires
functionFull reference ↗- tensorplay.distributed.elastic.timer.expires(after: float, scope: str | None = None, client: TimerClient | None = None)[source]
Context manager asserting the block finishes within
afterseconds.Registers the deadline with
client(default: the configured client) and cancels it on clean exit. If the deadline lapses, the server side reacts (typically by raisingSignalExceptionin the worker).
Classes 2
TimerClient
classFull reference ↗- class tensorplay.distributed.elastic.timer.TimerClient[source]
Client side of the timer contract.
TimerServer
classFull reference ↗Help improve this page
Found an error, an unclear step, or a missing example?
tensorplay.distributed.elastic.rendezvous API
Complete API reference for tensorplay.distributed.elastic.rendezvous, including signatures, parameters, examples and members.
tensorplay.distributed.elastic.utils API
Complete API reference for tensorplay.distributed.elastic.utils, including signatures, parameters, examples and members.

