Alabos hot restart #75
Labels
bug
not't working as it should be
coding standards
implement good coding practice
feature request
new feature to implement
Steps to follow:
1. Remove https://github.com/CederGroupHub/alabos/blob/main/alab_management/device_manager.py completely. We will create the instances of devices in each task every time the task occupies the device. (@idocx )
2. Implement reload option for importing alab_one package. Currently, the alab_one package is imported to AlabOS process via https://github.com/CederGroupHub/alabos/blob/main/alab_management/utils/module_ops.py#L12. We will need to implement something similar to
importlib.reload
function. The new function should have such signature. (@bernardusrendy )3. Implement process restart for AlabOS. This will be done via https://github.com/CederGroupHub/alabos/blob/main/alab_management/scripts/launch_lab.py#L70. Currently, there are four processes running. We will only need to restart them at a regular interval by adding a
live_time
argument to each manager class, e.g., (@odartsi )Then in the
launch_lab
function, we will need to start them process if it exits normally.The text was updated successfully, but these errors were encountered: