From fc4884a0f22964893e8b2b8c08eb388759498936 Mon Sep 17 00:00:00 2001 From: Mehdi Nassim KHODJA <18899702+naskio@users.noreply.github.com> Date: Sun, 12 May 2024 02:27:21 +0200 Subject: [PATCH] fix docs: use delay when using @job decorator (#2088) * fix docs: use delay to enqueue and use declared in separate file Signed-off-by: Mehdi Nassim KHODJA <18899702+naskio@users.noreply.github.com> * fix docs: use delay only Signed-off-by: Mehdi Nassim KHODJA <18899702+naskio@users.noreply.github.com> --------- Signed-off-by: Mehdi Nassim KHODJA <18899702+naskio@users.noreply.github.com> --- 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 ab717c52..5ee4eb8a 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -439,7 +439,7 @@ from rq.decorators import job def add(x, y): return x + y -job = add.enqueue(3, 4) +job = add.delay(3, 4) time.sleep(1) print(job.return_value()) ```