vanvalenlab / kiosk-frontend

DeepCell web application built using NodeJS, Express, React, and Webpack.
Other
1 stars 0 forks source link

Display warnings during consumer running #117

Open ngreenwald opened 4 years ago

ngreenwald commented 4 years ago

Currently, any errors that are generated while running the consumer will get displayed on the web portal. However, it would be nice to have a way to display warning messages.

For example, if the image dimensions seem off. I think we're also planning on putting together a QC detection model in addition a label detection model, and having something report that the image quality is, but still run the image would be nice.

It would also be good to have status updates for jobs with many different zipped images.

Is something like logging the best way to handle this? Would logging.info get displayed on the website? Or is there a better method to pass information to the user?

willgraf commented 3 years ago

In order to transport the warnings from the consumer to the frontend, the consumer has to put those in Redis, and the frontend will fetch that from Redis.

Currently, the frontend fetches the current status and any errors. We could add some sort of warning or update string to fetch and display there as well.