You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@ Steady Queue can be used with SQL databases such as MySQL, PostgreSQL or SQLite,
13
13
14
14
## Installation
15
15
16
-
1.**Install the `steady_queue` package.** Since Steady Queue depends on interfaces defined by DEP 0014 which has not become part of Django yet, it will add django-tasks (the reference implementation) as a dependency.
17
-
2.**Add `steady_queue`and `django_tasks`to your `INSTALLED_APPS`** in `settings.py`.
16
+
1.**Install the `steady_queue` package.**
17
+
2.**Add `steady_queue` to your `INSTALLED_APPS`** in `settings.py`.
18
18
3.**Configure Steady Queue as a task backend.** In `settings.py`, add the Steady Queue backend:
19
19
```python
20
20
TASKS= {
@@ -36,11 +36,10 @@ For small projects, you can run Steady Queue on the same machine as your webserv
36
36
37
37
Steady Queue works like any other DEP 0014-compatible task backend.
38
38
39
-
Tasks are functions decorated with the `@task` decorator from `django_tasks`
40
-
(which will become `django.tasks` once integrated into Django):
39
+
Tasks are functions decorated with the `@task` decorator from `django.tasks`:
41
40
42
41
```python
43
-
fromdjango_tasksimport task
42
+
fromdjango.taskimport task
44
43
45
44
@task()
46
45
defgreet(name: str, times: int=1):
@@ -392,7 +391,7 @@ Steady Queue extends Django Tasks with concurrency controls, that allows you to
392
391
393
392
394
393
```python
395
-
fromdjango_tasksimport task
394
+
fromdjango.tasksimport task
396
395
397
396
from steady_queue.concurrency import limits_concurrency
0 commit comments