2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-18 10:46:31 +00:00

[0.17.x] feat: add cluster monitor task (#9812) (#9815)

* feat: add cluster monitor task (#9812)

(cherry picked from commit 00c974b629)

* fix style

* fix style
This commit is contained in:
Matthias Mair
2025-06-22 01:41:59 +02:00
committed by GitHub
parent 533556b7e4
commit bca375dae5
3 changed files with 15 additions and 1 deletions

View File

@@ -1549,6 +1549,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)
# Collection sorting
development = Collection(
delete_data,
@@ -1597,6 +1603,7 @@ ns = Collection(
version,
wait,
worker,
monitor,
)
ns.add_collection(development, 'dev')