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
The first step is to configure a backend. This connects the tasks to whatever is going to execute them.
25
+
The first step is to add `django_tasks` to your `INSTALLED_APPS`.
26
+
27
+
Secondly, you'll need to configure a backend. This connects the tasks to whatever is going to execute them.
26
28
27
29
If omitted, the following configuration is used:
28
30
@@ -36,9 +38,11 @@ TASKS = {
36
38
37
39
A few backends are included by default:
38
40
39
-
-`DummyBackend`: Don't execute the tasks, just store them. This is especially useful for testing.
40
-
-`ImmediateBackend`: Execute the task immediately in the current thread
41
-
-`DatabaseBackend`: Store tasks in the database (via Django's ORM), and retrieve and execute them using the `db_worker` management command
41
+
-`django_tasks.backends.dummy.DummyBackend`: Don't execute the tasks, just store them. This is especially useful for testing.
42
+
-`django_tasks.backends.immediate.ImmediateBackend`: Execute the task immediately in the current thread
43
+
-`django_tasks.backends.database.DatabaseBackend`: Store tasks in the database (via Django's ORM), and retrieve and execute them using the `db_worker` management command
44
+
45
+
Note: `DatabaseBackend` additionally requires `django_tasks.backends.database` adding to `INSTALLED_APPS`.
0 commit comments