I'm sitting here, halfway through my first 10+ hour print, listening to the thunderstorm getting closer to me. Our power is pretty stable, but once in awhile, it goes off, even if for just a few seconds. That, of course, is long enough to wipe out 5+ hours of printing.
I just getting the "After hitting pause" set up (retract filament, raise head, shut off heaters), and thought "Why can't it do that if the UPS kicks in?" Basically, plug the UPS's USB cable into the Rpi to monitor it. When triggered, then Octoprint would run the Pause script after a specified amount of time. It technically COULD automatically resume the print after reheating, but I'd be fine with having to do it manually. Without the printers heaters or motors running, the power draw would be almost nothing, most likely long enough to survive the power outage.
I just started into OctoPrint, so if this feature exists, I apologize for posting, but could a link be posted for it?