-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Enable cancelation of stuck "in progress" mass firmware updates #208
Comments
I have run into the same "issue" :-) |
This is a rare corner case which shouldn't happen thanks to It can happen though, if while an upgrade is in progress, a cold shut down is performed. Now, how can we deal with this is the question. Allow canceling or abort an in-progress upgrade can create other problems and more corner cases to handle. I think the problem here is that while an upgrade is in progress users cannot do new upgrades, which is very annoying. UpgradeOperation.objects.filter(status='in-progress').update(status='failed') A definitive solution could be the following: when a new upgraded operation is created 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. Now, I cannot promise we'll invest our resources in fixing this since we can easily work around it with 1 minute and it never happens to the OpenWISP instances we manage, but if anyone wants to contribute, feel free to implement this solution and send a patch. |
Hey, I opened a draft PR, haven't tested it yet though as I don't have my env set up. https://github.com/openwisp/openwisp-firmware-upgrader/pull/238/files |
On the mass update history tab where you see the running updates, there should be a button to cancel updates that seem to be stuck.
The text was updated successfully, but these errors were encountered: