Disconnect tm1 session when complete #529
Answered
by
rkvinoth
swartz2011
asked this question in
Q&A
-
Is there a feature in TM1py where I can disconnect or end my session for a specific task? for example if I am done before 1500 seconds, my system user stays logged in and idle until timeout is reached Can I code something to "logout" upon finishing before 1500 seconds is reached? |
Beta Was this translation helpful? Give feedback.
Answered by
rkvinoth
Apr 16, 2021
Replies: 1 comment
-
my_single_connection.logout() Should log you out. Alternatively you can create a context manager. with TM1Service() as my_single_connection:
#Your code goes here |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MariusWirtz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should log you out.
Alternatively you can create a context manager.