offspot / imager-service

Create Kiwix Hotspot microSD cards online
https://imager.kiwix.org/
GNU General Public License v3.0
13 stars 6 forks source link

Change worker polling interval #341

Closed rgaudin closed 5 months ago

rgaudin commented 11 months ago

with image-creator, polling every minute for a task is way too long as this can be half the creation time for small cards. Similarly, the log upload interval (2mn) is too long ; especially given we have very few output with image-creator.

Should maybe consider reusing ZF broadcaster code

rgaudin commented 5 months ago

Had been set to 10s. Removing polling would require some work (not much but I'm finishing the project ATM) because the client worker uses the polling loop to do other tasks such as log upload.

SSE might be an appropriate tech for this ; quite lightweight to implement.