invoke-ai / invoke-ai/InvokeAI

[enhancement]: Option To Automatically Restart Server On Crash

Open
#7,609 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
28.2k
Forks
3k
Avg merge
6d 5h
Merged PRs (30d)
19

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Contact Details

_No response_

### What should this feature add?

I've noticed an increase in crashes with my current install of invoke, I'm not sure if it's just my install or what, but it's not unreasonable to accept that there will always be the risk of crashes. However with the addition of the new launcher, I'm wondering if it's possible to have the launcher automatically restart the server in the event of a crash.

In all cases, when the server itself crashes, the launcher still remains running. It seems possible it could act as a harness to restart the server if it detects that it is no longer running. The launcher also displays "exited" when the server has crashed, so it seemingly already has knowledge of whether the server is running or not.

### Alternatives

Restarting everytime manually on crash. Works, and isn't the worst thing ever since invoke starts pretty quickly, but automatic restarts would be convenient.

### Additional Content

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.