You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: when the user visits the control panel, there are several re-indexing tasks there that the user can run. Because these indexing tasks can take a while, and because calling a second re-indexing task in the middle of a first re-indexing task will (I think) kill the original re-indexing task, we should have a status indicator next to each task that indicates whether that task is currently running.
This would require the following changes:
Flask would need an additional endpoint to return a small json with current status. The update search index task in centillion.py (an object which wraps the search index task runner) would need some way to stay linked to the app (instead of the app saying, "okay, spin up this process, and then I'll forget about it entirely" it has to be able to say "okay, spin up this process, and then I'll be back in 5 seconds to check in on you and see how things are going").
Javascript on control panel would poll the api endpoint every N seconds, and would extract the contents and use it to update the control panel ui. If task X is currently running, the button to run task X is greyed out and the status indicator indicates that this index is currently being rebuilt.
The text was updated successfully, but these errors were encountered:
A nice-to-have feature.
Description: when the user visits the control panel, there are several re-indexing tasks there that the user can run. Because these indexing tasks can take a while, and because calling a second re-indexing task in the middle of a first re-indexing task will (I think) kill the original re-indexing task, we should have a status indicator next to each task that indicates whether that task is currently running.
This would require the following changes:
Flask would need an additional endpoint to return a small json with current status. The update search index task in
centillion.py
(an object which wraps the search index task runner) would need some way to stay linked to the app (instead of the app saying, "okay, spin up this process, and then I'll forget about it entirely" it has to be able to say "okay, spin up this process, and then I'll be back in 5 seconds to check in on you and see how things are going").Javascript on control panel would poll the api endpoint every N seconds, and would extract the contents and use it to update the control panel ui. If task X is currently running, the button to run task X is greyed out and the status indicator indicates that this index is currently being rebuilt.
The text was updated successfully, but these errors were encountered: