mirror of
https://github.com/inventree/InvenTree.git
synced 2026-05-09 03:03:41 +00:00
Fix verbose flag for worker task (#11883)
This commit is contained in:
@@ -1560,9 +1560,7 @@ def worker(c, verbose: bool = False):
|
|||||||
Launches a django-q2 cluster to process background tasks.
|
Launches a django-q2 cluster to process background tasks.
|
||||||
Ref: https://django-q2.readthedocs.io
|
Ref: https://django-q2.readthedocs.io
|
||||||
"""
|
"""
|
||||||
cmd = f'qcluster -v {2 if verbose else 0}'
|
manage(c, 'qcluster', pty=True, verbose=verbose)
|
||||||
|
|
||||||
manage(c, cmd, pty=True)
|
|
||||||
|
|
||||||
|
|
||||||
@task(post=[static, server])
|
@task(post=[static, server])
|
||||||
|
|||||||
Reference in New Issue
Block a user