Tm1Timeouts
from skipcheck_tm1 import Tm1TimeoutsHow long the session waits, by kind of work. TM1 answers some calls only when the work is done, so one timeout for everything is either too short for processes or too long for a login.
# Let a request go two hours without data, for a long process run synchronously
timeouts = Tm1Timeouts.builder().request(timedelta(hours=2)).build()
A builder leaves unset values at the defaults below.
Members
connect | |
login | |
request | |
close | |
refused_login | |
DEFAULTS | The defaults. |
builder static | A builder starting from the defaults. |
to_builder | A builder starting from these timeouts, to change some of them. |
with_request | A copy with this request idle timeout instead. |
connect
connect: floatlogin
login: floatrequest
request: floatclose
close: floatrefused_login
refused_login: floatDEFAULTS
DEFAULTS: ClassVar[Tm1Timeouts]The defaults.
builder
staticbuilder() -> Tm1Timeouts.BuilderA builder starting from the defaults.
to_builder
to_builder() -> Tm1Timeouts.BuilderA builder starting from these timeouts, to change some of them.
with_request
with_request(seconds: float | timedelta) -> Tm1TimeoutsA copy with this request idle timeout instead.