mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 00:48:12 +08:00
Adds max rss test
This commit is contained in:
@@ -358,8 +358,7 @@ def test_max_rss(broker, monkeypatch):
|
|||||||
async_task('django_q.tests.tasks.multiply', 2, 2, broker=broker)
|
async_task('django_q.tests.tasks.multiply', 2, 2, broker=broker)
|
||||||
task_queue = Queue()
|
task_queue = Queue()
|
||||||
result_queue = Queue()
|
result_queue = Queue()
|
||||||
# push two tasks
|
# push the task
|
||||||
pusher(task_queue, stop_event, broker=broker)
|
|
||||||
pusher(task_queue, stop_event, broker=broker)
|
pusher(task_queue, stop_event, broker=broker)
|
||||||
# worker should exit on recycle
|
# worker should exit on recycle
|
||||||
worker(task_queue, result_queue, Value('f', -1))
|
worker(task_queue, result_queue, Value('f', -1))
|
||||||
|
|||||||
Reference in New Issue
Block a user