The Stable Diffusion webui seems to frequently crash for unknown reasons and lacks an automatic restart mechanism. dan-server is not aware of the operational status of registered nodes, which can result in task scheduling to offline nodes and consequently cause task failures.
I checked docs of Stable Diffusion webui and find an easy way to check its running status, to call the app_id API:
curl -X 'GET' 'http://127.0.0.1:7860/app_id/' -H 'accept: application/json'
The Stable Diffusion webui seems to frequently crash for unknown reasons and lacks an automatic restart mechanism. dan-server is not aware of the operational status of registered nodes, which can result in task scheduling to offline nodes and consequently cause task failures.
I checked docs of Stable Diffusion webui and find an easy way to check its running status, to call the
app_idAPI:curl -X 'GET' 'http://127.0.0.1:7860/app_id/' -H 'accept: application/json'