mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 19:20:55 +00:00
feat: add cluster monitor task (#9812)
This commit is contained in:
7
tasks.py
7
tasks.py
@ -1851,6 +1851,12 @@ def clear_generated(c):
|
||||
run(c, 'find src -name "messages.mo" -exec rm -f {} +')
|
||||
|
||||
|
||||
@task(pre=[wait])
|
||||
def monitor(c):
|
||||
"""Monitor the worker performance."""
|
||||
manage(c, 'qmonitor', pty=True)
|
||||
|
||||
|
||||
# endregion tasks
|
||||
|
||||
# Collection sorting
|
||||
@ -1901,6 +1907,7 @@ ns = Collection(
|
||||
version,
|
||||
wait,
|
||||
worker,
|
||||
monitor,
|
||||
build_docs,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user