Skip to content

Commit c4f87b3

Browse files
committed
Update readme
1 parent 36da3f6 commit c4f87b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Jobs have a `state` field which can have one of the following values:
170170

171171
#### Model methods
172172

173-
##### Job.get_queue_depths_dict
173+
##### Job.get_queue_depths
174174
If you need to programatically get the depth of any queue you can run the following:
175175
```python
176176
from django_dbq.models import Job
@@ -180,7 +180,7 @@ from django_dbq.models import Job
180180
Job.objects.create(name='do_work', workspace={})
181181
Job.objects.create(name='do_other_work', queue_name='other_queue', workspace={})
182182

183-
queue_depths = Job.get_queue_depths_dict()
183+
queue_depths = Job.get_queue_depths()
184184
print(queue_depths) # {"default": 1, "other_queue": 1}
185185
```
186186

0 commit comments

Comments
 (0)