Run Explain tasks in background after training finishes
ledell opened this issue · 1 comments
ledell commented
To avoid the computational delay, let's start the explain tasks immediately after the training finishes using Background Tasks. Then we can store the data/images in the app so they will be ready to serve by the time the user clicks on the Explain tabs. We will just store the default model images for Model Explain and generate the other ones on-demand.
Useful blog: https://medium.com/@unusualcode/background-jobs-in-wave-or-how-not-to-kill-your-ui-ae1fed95693a
ledell commented
Per @sebhrusen recommendation, consider: https://docs.python.org/3/library/asyncio-future.html