mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 02:08:12 +08:00
Add "qmemory" command (#553)
* Add qmemory command * Update README, add test * Redesign qmemory * Add optional argument to show each worker's memory usage * Add --workers argument to test_qmemory
This commit is contained in:
@@ -17,3 +17,9 @@ def test_qinfo():
|
||||
call_command('qinfo')
|
||||
call_command('qinfo', config=True)
|
||||
call_command('qinfo', ids=True)
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_qmemory():
|
||||
call_command('qmemory', run_once=True)
|
||||
call_command('qmemory', workers=True, run_once=True)
|
||||
|
||||
Reference in New Issue
Block a user