mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 11:10:54 +00:00
feat: add cluster monitor task (#9812)
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
# Please keep this list sorted - if you pin a version provide a reason
|
||||
Django<5.0 # Django package
|
||||
blessed # CLI for Q Monitor
|
||||
coreapi # API documentation for djangorestframework
|
||||
cryptography>=44.0.0 # Core cryptographic functionality
|
||||
django-allauth[mfa,socialaccount,saml,openid] # SSO for external providers via OpenID
|
||||
|
@ -26,6 +26,10 @@ bleach[css]==6.2.0 \
|
||||
--hash=sha256:117d9c6097a7c3d22fd578fcd8d35ff1e125df6736f554da4e432fdd63f31e5e \
|
||||
--hash=sha256:123e894118b8a599fd80d3ec1a6d4cc7ce4e5882b1317a7e1ba69b56e95f991f
|
||||
# via django-markdownify
|
||||
blessed==1.21.0 \
|
||||
--hash=sha256:ece8bbc4758ab9176452f4e3a719d70088eb5739798cd5582c9e05f2a28337ec \
|
||||
--hash=sha256:f831e847396f5a2eac6c106f4dfadedf46c4f804733574b15fe86d2ed45a9588
|
||||
# via -r src/backend/requirements.in
|
||||
brotli==1.1.0 \
|
||||
--hash=sha256:03d20af184290887bdea3f0f78c4f737d126c74dc2f3ccadf07e54ceca3bf208 \
|
||||
--hash=sha256:0541e747cce78e24ea12d69176f6a7ddb690e62c425e01d31cc065e69ce55b48 \
|
||||
@ -1679,7 +1683,9 @@ urllib3==2.5.0 \
|
||||
wcwidth==0.2.13 \
|
||||
--hash=sha256:3da69048e4540d84af32131829ff948f1e022c1c6bdb8d6102117aac784f6859 \
|
||||
--hash=sha256:72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5
|
||||
# via prettytable
|
||||
# via
|
||||
# blessed
|
||||
# prettytable
|
||||
weasyprint==65.1 \
|
||||
--hash=sha256:120281bdbd42ffaa7d7e5cedbe3182a2cef36ea5ad97fe9f357e43be6a1e58ea \
|
||||
--hash=sha256:9baa54282dc86929f6b877034d06b0416e2a7cacb1af3f73d80960592fd0af89
|
||||
|
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