latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
tensorplay.distributed.elastic.timer.expires
- 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).
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

