Fix usage example of queue.enqueue() (#1082)

* Fix usage example of queue.enqueue()

* Refactor enqueue example
This commit is contained in:
Ted Summer 2019-05-06 19:12:40 -05:00 committed by Selwin Ong
parent f467e708f2
commit eed51df14a
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ to your job and not to RQ's enqueue function, this is what you do:
```python ```python
q = Queue('low', connection=redis_conn) q = Queue('low', connection=redis_conn)
q.enqueue(func=count_words_at_url, q.enqueue(count_words_at_url,
ttl=30, # This ttl will be used by RQ ttl=30, # This ttl will be used by RQ
args=('http://nvie.com',), args=('http://nvie.com',),
kwargs={ kwargs={