Skip to content

Commit

Permalink
fix docs: use delay when using @job decorator (#2088)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
naskio committed May 12, 2024
1 parent f31afdb commit fc4884a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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())
```
Expand Down

0 comments on commit fc4884a

Please sign in to comment.