From eed51df14a71bb910e8ce093aa666532a007cacb Mon Sep 17 00:00:00 2001 From: Ted Summer Date: Mon, 6 May 2019 19:12:40 -0500 Subject: [PATCH] Fix usage example of queue.enqueue() (#1082) * Fix usage example of queue.enqueue() * Refactor enqueue example --- docs/docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/index.md b/docs/docs/index.md index 78661dd..57f7312 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -83,7 +83,7 @@ to your job and not to RQ's enqueue function, this is what you do: ```python 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 args=('http://nvie.com',), kwargs={