mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 03:26:45 +00:00
Revert int.worker to worker (#8126)
- Prevent existing docker compose installs from breaking
This commit is contained in:
parent
12d2865b59
commit
d75ef7c9c9
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@ -9,7 +9,7 @@
|
|||||||
{
|
{
|
||||||
"label": "worker",
|
"label": "worker",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "invoke int.worker",
|
"command": "invoke worker",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -56,7 +56,7 @@ services:
|
|||||||
inventree-dev-worker:
|
inventree-dev-worker:
|
||||||
image: inventree-dev-image
|
image: inventree-dev-image
|
||||||
build: *build_config
|
build: *build_config
|
||||||
command: invoke int.worker
|
command: invoke worker
|
||||||
depends_on:
|
depends_on:
|
||||||
- inventree-dev-server
|
- inventree-dev-server
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -83,7 +83,7 @@ services:
|
|||||||
# If you wish to specify a particular InvenTree version, do so here
|
# If you wish to specify a particular InvenTree version, do so here
|
||||||
image: inventree/inventree:${INVENTREE_TAG:-stable}
|
image: inventree/inventree:${INVENTREE_TAG:-stable}
|
||||||
container_name: inventree-worker
|
container_name: inventree-worker
|
||||||
command: invoke int.worker
|
command: invoke worker
|
||||||
depends_on:
|
depends_on:
|
||||||
- inventree-server
|
- inventree-server
|
||||||
env_file:
|
env_file:
|
||||||
|
@ -107,7 +107,7 @@ The background worker process must be started separately to the web-server appli
|
|||||||
From the top-level source directory, run the following command from a separate terminal, while the server is already running:
|
From the top-level source directory, run the following command from a separate terminal, while the server is already running:
|
||||||
|
|
||||||
```
|
```
|
||||||
invoke int.worker
|
invoke worker
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! info "Supervisor"
|
!!! info "Supervisor"
|
||||||
|
@ -52,7 +52,7 @@ source ./env/bin/activate
|
|||||||
### Start Background Worker
|
### Start Background Worker
|
||||||
|
|
||||||
```
|
```
|
||||||
(env) invoke int.worker
|
(env) invoke worker
|
||||||
```
|
```
|
||||||
|
|
||||||
This will start the background process manager in the current shell.
|
This will start the background process manager in the current shell.
|
||||||
|
@ -247,7 +247,7 @@ index 8adee63..dc3993c 100644
|
|||||||
- image: inventree/inventree:${INVENTREE_TAG:-stable}
|
- image: inventree/inventree:${INVENTREE_TAG:-stable}
|
||||||
+ image: inventree/inventree:${INVENTREE_TAG:-stable}-custom
|
+ image: inventree/inventree:${INVENTREE_TAG:-stable}-custom
|
||||||
+ pull_policy: never
|
+ pull_policy: never
|
||||||
command: invoke int.worker
|
command: invoke worker
|
||||||
depends_on:
|
depends_on:
|
||||||
- inventree-server
|
- inventree-server
|
||||||
```
|
```
|
||||||
|
2
tasks.py
2
tasks.py
@ -1473,7 +1473,6 @@ internal = Collection(
|
|||||||
rebuild_thumbnails,
|
rebuild_thumbnails,
|
||||||
showmigrations,
|
showmigrations,
|
||||||
translate_stats,
|
translate_stats,
|
||||||
worker,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
ns = Collection(
|
ns = Collection(
|
||||||
@ -1491,6 +1490,7 @@ ns = Collection(
|
|||||||
update,
|
update,
|
||||||
version,
|
version,
|
||||||
wait,
|
wait,
|
||||||
|
worker,
|
||||||
)
|
)
|
||||||
|
|
||||||
ns.add_collection(development, 'dev')
|
ns.add_collection(development, 'dev')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user