intelligent-agent / Reflash

Flasher image for Refactor distro for use with Recore 3D printer board
GNU Affero General Public License v3.0
1 stars 0 forks source link

Progress is not always shown correclty #18

Closed eliasbakken closed 1 year ago

eliasbakken commented 1 year ago

When first downloading and then immediately installing after, the progress is not shown. This could be a result of having only two workers in the thread pool. If a refresh is done before the installation is done, the progress seems to work fine.

eliasbakken commented 1 year ago

This does not appear to be a problem on the dev server. One test was done.

eliasbakken commented 1 year ago

I increased the number of workers from 2 to 4. It did work this time, but it might not be stable. Needs more testing. I'm leaving it open.

eliasbakken commented 1 year ago

Instead of storing the state in variables, the state is now stored in a sqlite3 database. In addition, it was discovered that opening the progress file from the flashing operation would sometimes hang. v0.0.7-RC6 uses a system call to get the progress, whihc seems to work better.