From f411b9cb55a15a58a844940a800ade108dde484f Mon Sep 17 00:00:00 2001 From: josvdw Date: Wed, 7 Aug 2024 23:39:30 -0700 Subject: [PATCH] quality of life improvements for the launch.json template (#2082) Co-authored-by: Jos Van der westhuizen --- .vscode/launch.template.jsonc | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.template.jsonc b/.vscode/launch.template.jsonc index a4be80fc1..5cc0507ae 100644 --- a/.vscode/launch.template.jsonc +++ b/.vscode/launch.template.jsonc @@ -39,7 +39,8 @@ "--reload", "--port", "9000" - ] + ], + "consoleTitle": "Model Server" }, { "name": "API Server", @@ -58,7 +59,8 @@ "--reload", "--port", "8080" - ] + ], + "consoleTitle": "API Server" }, { "name": "Indexing", @@ -72,7 +74,8 @@ "LOG_LEVEL": "DEBUG", "PYTHONUNBUFFERED": "1", "PYTHONPATH": "." - } + }, + "consoleTitle": "Indexing" }, // Celery and all async jobs, usually would include indexing as well but this is handled separately above for dev { @@ -90,7 +93,8 @@ }, "args": [ "--no-indexing" - ] + ], + "consoleTitle": "Background Jobs" }, // For the listner to access the Slack API, // DANSWER_BOT_SLACK_APP_TOKEN & DANSWER_BOT_SLACK_BOT_TOKEN need to be set in .env file located in the root of the project @@ -125,5 +129,17 @@ //"tests/unit/danswer/llm/answering/test_prune_and_merge.py" ] } + ], + "compounds": [ + { + "name": "Run Danswer", + "configurations": [ + "Web Server", + "Model Server", + "API Server", + "Indexing", + "Background Jobs", + ] + } ] }