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: docs/plugins/development/background-jobs.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,9 @@ class MyTestJob(JobRunner):
29
29
30
30
You can schedule the background job from within your code (e.g. from a model's `save()` method or a view) by calling `MyTestJob.enqueue()`. This method passes through all arguments to `Job.enqueue()`. However, no `name` argument must be passed, as the background job name will be used instead.
31
31
32
+
!!! tip
33
+
A set of predefined intervals can be used from `core.choices.JobIntervalChoices`.
34
+
32
35
### Attributes
33
36
34
37
`JobRunner` attributes are defined under a class named `Meta` within the job. These are optional (unless specified otherwise), but encouraged.
@@ -56,14 +59,15 @@ As described above, jobs can be scheduled for immediate execution or at any late
0 commit comments