Skip to content

Commit

Permalink
Rename management command
Browse files Browse the repository at this point in the history
  • Loading branch information
chromium7 committed Dec 17, 2023
1 parent 8303c4b commit bc0db57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class Command(BaseCommand):
"""
Runs RQ pool with x number of workers on specified queues.
Note that all queues passed into a
single rqworker command must share the same connection.
single rqworker-pool command must share the same connection.
Example usage:
python manage.py rqpool high medium low --num-workers 4
python manage.py rqworker-pool high medium low --num-workers 4
"""

args = '<queue queue ...>'
Expand Down
4 changes: 2 additions & 2 deletions django_rq/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def test_pass_queue_via_commandline_args(self):
self.assertTrue(job['job'].is_finished)
self.assertIn(job['job'].id, job['finished_job_registry'].get_job_ids())

# Test with rqpool command
# Test with rqworker-pool command
jobs = []
for queue_name in queue_names:
queue = get_queue(queue_name)
Expand All @@ -296,7 +296,7 @@ def test_pass_queue_via_commandline_args(self):
}
)

call_command('rqpool', *queue_names, burst=True)
call_command('rqworker-pool', *queue_names, burst=True)

for job in jobs:
self.assertTrue(job['job'].is_finished)
Expand Down

0 comments on commit bc0db57

Please sign in to comment.