datasette / datasette-extract

Import unstructured data (text and images) into structured tables
Apache License 2.0
143 stars 3 forks source link

Polling page should watch out for errors and display them #10

Closed simonw closed 5 months ago

simonw commented 7 months ago

If an error occurs it should display that error and stop polling.

Table is being introduced here: https://github.com/datasette/datasette-extract/commit/050612c4b0cdab20ac1635e635193c0c9a804904

simonw commented 7 months ago

Relevant code: https://github.com/datasette/datasette-extract/blob/f49f58376dcf3fc936686750d3886621b31759b3/datasette_extract/templates/extract_progress.html#L80-L95

simonw commented 7 months ago

It's actually polling an in-memory structure already which should make errors available, so no need to check the table.

simonw commented 5 months ago

Errors now display like this:

CleanShot 2024-04-09 at 12 21 12@2x