2
0
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:
Matthias Mair
2025-06-20 01:45:25 +02:00
committed by GitHub
parent 38cf8141fc
commit 00c974b629
3 changed files with 15 additions and 1 deletions

View File

@ -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,
)