Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Timeout for simulation #75
Add SCILAB_INSTANCE_TIMEOUT_INTERVAL to config.py. Add start time when command is run. Add a timeout = start time + SCILAB_INSTANCE_TIMEOUT_INTERVAL to the scilab-adv-cli instance. At the end of the timeout, kill the scilab-adv-cli instance and return error.
When a user clicks on simulate in the browser, a scilab-adv-cli instance starts. If the user does not click on Stop, this instance can continue forever. This happens with diagrams having specific type of blocks. Ensure that simulation stops cleanly after reaching the timeout.
At present, the value of SCILAB_INSTANCE_TIMEOUT_INTERVAL will be 3 minutes.
Later, we can add support for timeout based on specific blocks in the diagram.