openwisp / openwisp-firmware-upgrader

Firmware upgrade solution for OpenWRT with possibility to add support for other embedded OSes. Provides features like automatic retry for network failures, mass upgrades, REST API and more.
https://openwisp.io/docs/dev/firmware-upgrader/
Other
53 stars 60 forks source link

[fix] Handle upgrade operation is in progress #238

Closed mips171 closed 3 months ago

mips171 commented 1 year ago

Implemented according to https://github.com/openwisp/openwisp-firmware-upgrader/issues/208#issuecomment-1585126524 if we detect another one in progress, let's check if it's old enough to be timed out, if it is we assume this corner case is happening, flag it as failed automatically and move on.

Fixes https://github.com/openwisp/openwisp-firmware-upgrader/issues/208