how long are definitions saved in a .sagews file?

50 views
Skip to first unread message

valer...@gmail.com

unread,
Feb 19, 2017, 7:22:40 AM2/19/17
to sage-cloud
I find that if I open a .sagews that I worked on yesterday, all my definition are still in the memory (even if I had completely logged out of SMC). But if I open one that I last worked on two weeks ago, there are no saved definitions. So I wonder how the system decides when to reset the definitions.
Thanks for any information

 

Hal Snyder

unread,
Feb 19, 2017, 2:56:27 PM2/19/17
to sage-cloud
Variable definitions are stored in a child process of the sage server. They will be retained until one of the following processes stops:
- the child process
- the sage_server process
- the project process

Variables are therefore reset when any of the following happens:
- worksheet is restarted ("Restart" button at top of .sagews)
- Worksheet server is restarted ("Restart Sage Worksheet Server" button on project Settings and configuration page)
- project is restarted ("Restart project" dialogue on project Settings and configuration page)

If your project is on a free server, it will be stopped whenever the Google pre-emptible server instance restarts, typically once per 24 hours.

In any case, projects are stopped after some number of hours of non-interactive use, determined by the "Idle timeout" project setting on project Settings and configuration.

Hal Snyder

unread,
Feb 19, 2017, 11:05:42 PM2/19/17
to sage-cloud
Answer edited and added to SMC wiki:

How long are definitions saved in a .sagews file?

valer...@gmail.com

unread,
Feb 20, 2017, 8:34:21 PM2/20/17
to sage-cloud
Thanks for the information, that was quite useful
Reply all
Reply to author
Forward
0 new messages