diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-29 05:21:28 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-29 05:21:28 +0000 |
commit | cc9c1719786de00d4a5bfcf83be4bf2808cf0cb5 (patch) | |
tree | 4949c1b7185b5bd8f26721a4359c2a3e524156e5 | |
parent | fab73f2e7d388ca99cdb3d5de7f36c0b9a1a3b1c (diff) | |
download | stable-diffusion-webui-gfx803-cc9c1719786de00d4a5bfcf83be4bf2808cf0cb5.tar.gz stable-diffusion-webui-gfx803-cc9c1719786de00d4a5bfcf83be4bf2808cf0cb5.tar.bz2 stable-diffusion-webui-gfx803-cc9c1719786de00d4a5bfcf83be4bf2808cf0cb5.zip |
rename --add-stop-route to --api-server-stop
-rw-r--r-- | .github/workflows/run_tests.yaml | 2 | ||||
-rw-r--r-- | modules/api/api.py | 2 | ||||
-rw-r--r-- | modules/cmd_args.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index 96546011..178c026a 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -42,7 +42,7 @@ jobs: --no-half --disable-opt-split-attention --use-cpu all - --add-stop-route + --api-server-stop 2>&1 | tee output.txt & - name: Run tests run: | diff --git a/modules/api/api.py b/modules/api/api.py index 279c384a..adc633db 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -202,7 +202,7 @@ class Api: self.add_api_route("/sdapi/v1/scripts", self.get_scripts_list, methods=["GET"], response_model=models.ScriptsList) self.add_api_route("/sdapi/v1/script-info", self.get_script_info, methods=["GET"], response_model=List[models.ScriptInfo]) - if shared.cmd_opts.add_stop_route: + if shared.cmd_opts.api_server_stop: 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-stop", self.stop_webui, methods=["POST"]) diff --git a/modules/cmd_args.py b/modules/cmd_args.py index 624dcb4f..278a605e 100644 --- a/modules/cmd_args.py +++ b/modules/cmd_args.py @@ -106,4 +106,4 @@ parser.add_argument("--skip-version-check", action='store_true', help="Do not ch parser.add_argument("--no-hashing", action='store_true', help="disable sha256 hashing of checkpoints to help loading performance", default=False)
parser.add_argument("--no-download-sd-model", action='store_true', help="don't download SD1.5 model even if no model is found in --ckpt-dir", default=False)
parser.add_argument('--subpath', type=str, help='customize the subpath for gradio, use with reverse proxy')
-parser.add_argument('--add-stop-route', action='store_true', help='enable server stop/restart/kill via api')
+parser.add_argument('--api-server-stop', action='store_true', help='enable server stop/restart/kill via api')
|