We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36da3f6 commit c4f87b3Copy full SHA for c4f87b3
README.md
@@ -170,7 +170,7 @@ Jobs have a `state` field which can have one of the following values:
170
171
#### Model methods
172
173
-##### Job.get_queue_depths_dict
+##### Job.get_queue_depths
174
If you need to programatically get the depth of any queue you can run the following:
175
```python
176
from django_dbq.models import Job
@@ -180,7 +180,7 @@ from django_dbq.models import Job
180
Job.objects.create(name='do_work', workspace={})
181
Job.objects.create(name='do_other_work', queue_name='other_queue', workspace={})
182
183
-queue_depths = Job.get_queue_depths_dict()
+queue_depths = Job.get_queue_depths()
184
print(queue_depths) # {"default": 1, "other_queue": 1}
185
```
186
0 commit comments