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

* Fix usage example of queue.enqueue()

* Refactor enqueue example
main
Ted Summer 6 years ago committed by Selwin Ong
parent f467e708f2
commit eed51df14a

@ -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={

Loading…
Cancel
Save