mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 13:35:40 +00:00
Add invoke task to start background worker
This commit is contained in:
7
tasks.py
7
tasks.py
@ -111,6 +111,13 @@ def shell(c):
|
|||||||
|
|
||||||
manage(c, 'shell', pty=True)
|
manage(c, 'shell', pty=True)
|
||||||
|
|
||||||
|
@task
|
||||||
|
def worker(c):
|
||||||
|
"""
|
||||||
|
Run the InvenTree background worker process
|
||||||
|
"""
|
||||||
|
|
||||||
|
manage(c, 'qcluster', pty=True)
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def superuser(c):
|
def superuser(c):
|
||||||
|
Reference in New Issue
Block a user