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 <oliver@lipperts-web.de>
This commit is contained in:
Oliver Lippert 2023-10-01 12:06:34 +02:00 committed by GitHub
parent 3cd7ee9cd2
commit 7fa0c6d280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

6
.vscode/tasks.json vendored
View File

@ -6,6 +6,12 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{
"label": "worker",
"type": "shell",
"command": "inv worker",
"problemMatcher": [],
},
{ {
"label": "clean-settings", "label": "clean-settings",
"type": "shell", "type": "shell",

View File

@ -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. 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 ### 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. 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.