Dear @GuillaumeGru ,
If your analysis takes more than 3 minutes (to minimize dangling sessions), the session is closed automatically. You can set the timeout yourself from the client if you need longer wait times–it can be set in seconds. As an example, to set it to 1000s, use the following line:
mySession.timeout = 1000;
Sometimes, the calculations cannot be gracefully closed even after the timeout is reached, and the worker keeps running until the operation ends.
In these cases, you can use the following command to force a worker to restart:
mySession = sessions.cloud(host=myInstance,token=myToken,force_restart=True)
Let me know if this helps!
Best regards
Adela