diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-14 10:53:08 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-14 10:53:08 +0000 |
commit | 6091c4e4aa32b674f8ec755e6bd58989f09b08c5 (patch) | |
tree | d4204adaa24109a872d8256e4f656774fa3cd4a2 | |
parent | 49fb2a337661d1b9a80de8ff35a640083fa98d2f (diff) | |
download | stable-diffusion-webui-gfx803-6091c4e4aa32b674f8ec755e6bd58989f09b08c5.tar.gz stable-diffusion-webui-gfx803-6091c4e4aa32b674f8ec755e6bd58989f09b08c5.tar.bz2 stable-diffusion-webui-gfx803-6091c4e4aa32b674f8ec755e6bd58989f09b08c5.zip |
terminate -> stop
-rw-r--r-- | .github/workflows/run_tests.yaml | 2 | ||||
-rw-r--r-- | modules/api/api.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index 394811ac..96546011 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -50,7 +50,7 @@ jobs: python -m pytest -vv --junitxml=test/results.xml --cov . --cov-report=xml --verify-base-url test - name: Kill test server if: always() - run: curl -vv -XPOST http://127.0.0.1:7860/sdapi/v1/server-terminate && sleep 10 + run: curl -vv -XPOST http://127.0.0.1:7860/sdapi/v1/server-stop && sleep 10 - name: Show coverage run: | python -m coverage combine .coverage* diff --git a/modules/api/api.py b/modules/api/api.py index 4dc48a03..80d45ca7 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -212,7 +212,7 @@ class Api: if shared.cmd_opts.add_stop_route: self.add_api_route("/sdapi/v1/server-kill", self.kill_webui, methods=["POST"]) self.add_api_route("/sdapi/v1/server-restart", self.restart_webui, methods=["POST"]) - self.add_api_route("/sdapi/v1/server-terminate", self.terminate_webui, methods=["POST"]) + self.add_api_route("/sdapi/v1/server-stop", self.stop_webui, methods=["POST"]) self.default_script_arg_txt2img = [] self.default_script_arg_img2img = [] @@ -729,6 +729,6 @@ class Api: restart.restart_program() return Response(status_code=501) - def terminate_webui(request): + def stop_webui(request): shared.state.server_command = "stop" return Response("Stopping.") |