It appears that QuantConnect live setup creates periodic snapshots of the algorithm state. Could somebody point me to examples/tests/docstrings describing that functionality?

More specifically, the question is in the context of the Running Lean on your server discussion. Some algorithm objects could be updated relatively infrequently (compared to the OnData resolution), and an initial warmup period may not be enough to instantiate them correctly. I would like to create periodic dumps of selected algorithm variables, to read the latest one if LEAN crashes. Would be good to reuse some existing snapshot creation code to the extent possible.

More generally, what is a recommended checklist for adopting a backtested algorithm to live trading, assuming an instance/container running LEAN could crash and restart?

Author