skipcheck

TM1 client · Docs · Sessions and logins

Tm1Timeouts

from skipcheck_tm1 import Tm1Timeouts

How 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
DEFAULTSThe defaults.
builder staticA builder starting from the defaults.
to_builderA builder starting from these timeouts, to change some of them.
with_requestA copy with this request idle timeout instead.

connect

connect: float

login

login: float

request

request: float

close

close: float

refused_login

refused_login: float

DEFAULTS

DEFAULTS: ClassVar[Tm1Timeouts]

The defaults.

builder

static
builder() -> Tm1Timeouts.Builder

A builder starting from the defaults.

to_builder

to_builder() -> Tm1Timeouts.Builder

A builder starting from these timeouts, to change some of them.

with_request

with_request(seconds: float | timedelta) -> Tm1Timeouts

A copy with this request idle timeout instead.