stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Feature Request]: Auto Shutdown Extension

Open javi22020 opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

This extension would shut the PC down after the current batch was completed. It'd be useful for large batch counts.

Proposed workflow

It'd be shown as a toggle in the txt2img tab. When activated, the webui would execute this command shutdown /s /t 1 and turn off the system.

Additional information

No response

javi22020 avatar Feb 21 '23 20:02 javi22020

its really not up to application to shutdown your system - if you want to do that, you can script it outside of webui (e.g. monitor output folder and once desired count is reached, do a shutdown). or even better, do it via webui api.

vladmandic avatar Feb 22 '23 02:02 vladmandic

I can see it being useful to have an extension that runs a generic command on batch completion - not just shutdowns, but beeps, desktop toasts, emails, cache clearing, etc. But it would have to be obvious and easy to turn off, for folks like me who would 100% forget when I wake up and want to run a refined batch of like 4.

DejitaruJin avatar Feb 22 '23 11:02 DejitaruJin

This should do in a pinch but it's untested

https://github.com/Betterlife-exe/ShutdownAfterFileGen

Betterlife-exe avatar Sep 03 '23 06:09 Betterlife-exe