If a VM stops, anything from the power supply frying to the host system rebooting a VM to apply O/S updates, what happens? If it in the middle of processing an OnData or other methods, what does it do?
- Is all calls in the method wrapped in a transaction and so it unrolls it all and then calls OnData again?
- Does it figure better to do nothing and I have to wait until the next OnData is scheduled?
- Is OnData called again and I might then possibly duplicate orders?
- Something else?
thanks - dave
Jared Broad
A monitoring system detects the process is terminated and notifies you to restart the algorithm. There is no “restarting” the current state automatically. We do provide an option to redeploy the algorithm automatically when it dies – but this relies on the normal initialization method to reset the algorithm state.
In your Initialize you should try to reset any state you need.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
David Thielen
When you say notifies me, is there a special event handler called? Or does it just start the algo and I handle it the same as it I had stopped and then started the algo?
thanks - dave
Alexandre Catarino
Hi David Thielen ,
When a live deployment is terminated with a runtime error or monitoring system detects the process is terminated, you are notified by email. If you have selected the option of auto-restart, it will also send you an email and restart the algorithm the same as if you had stopped and then restarted it.
David Thielen
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!