mirror of
https://github.com/pockethost/pockethost.git
synced 2025-07-02 02:42:30 +00:00
fix: instance shutdown while in unhealthy state
This commit is contained in:
parent
6fb47aaf33
commit
7c23e507fc
@ -145,7 +145,7 @@ export const instanceService = mkSingleton(
|
|||||||
}
|
}
|
||||||
return startRequest()
|
return startRequest()
|
||||||
},
|
},
|
||||||
shutdown: () => {
|
shutdown: async () => {
|
||||||
if (status !== InstanceApiStatus.Healthy) {
|
if (status !== InstanceApiStatus.Healthy) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Attempt to shut down an instance request when instance is not in a healthy state.`
|
`Attempt to shut down an instance request when instance is not in a healthy state.`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user