mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-18 10:46:31 +00:00
* feat: add cluster monitor task (#9812)
(cherry picked from commit 00c974b629
)
* fix style
* fix style
This commit is contained in:
7
tasks.py
7
tasks.py
@@ -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')
|
||||
|
Reference in New Issue
Block a user