Closed BoPeng closed 3 years ago
The problem is that sos-notebook has a single execution thread for cell execution, so the task-execution process has to stop before users can run the next cell.
The solution would be moving the burden of checking task status to the controller so that the controller can continue to check the status and update notebook even sos notebook is working on other cells.
We need to rearrange the task execution logics.
Right now,
task_pendsing
from time to time. After the task is done, it sends task results to substep, effectively wake up the substep for it to continue.We need to move the job from workflow executor to controller so that workflow executor can terminate , basically,
Right now when we run
without
the cell will block, making the checking of job status not possible. It makes sense to make cells non-blocking if all tasks have been submitted.