From 7fa0c6d2804c9251a0361e376bb53f61e4bf7a13 Mon Sep 17 00:00:00 2001 From: Oliver Lippert Date: Sun, 1 Oct 2023 12:06:34 +0200 Subject: [PATCH] Add worker task to VS Code (#5605) * add worker task to vscode * add documentation for devcontainer backgorund workers * fix misphrased sentence ("want need" -> "need") --------- Co-authored-by: Oliver Lippert --- .vscode/tasks.json | 6 ++++++ docs/docs/develop/devcontainer.md | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 8eb8c3ca13..35a9d40f84 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,6 +6,12 @@ "version": "2.0.0", "tasks": [ + { + "label": "worker", + "type": "shell", + "command": "inv worker", + "problemMatcher": [], + }, { "label": "clean-settings", "type": "shell", diff --git a/docs/docs/develop/devcontainer.md b/docs/docs/develop/devcontainer.md index a2242dfaf4..cbeda3583c 100644 --- a/docs/docs/develop/devcontainer.md +++ b/docs/docs/develop/devcontainer.md @@ -45,6 +45,10 @@ If you need some demo test-data, run the `setup-test` task. This will import an If you only need a superuser, run the `superuser` task. It should prompt you for credentials. +#### Run background workers + +If you need to process your queue with background workers, run the `worker` task. + ### Running InvenTree You can either only run InvenTree or use the integrated debugger for debugging. Goto the `Run and debug` side panel make sure `InvenTree Server` is selected. Click on the play button on the left.