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
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,20 @@ Using the name you configured for your job in your settings, create an instance
114
114
Job.objects.create(name='my_job')
115
115
```
116
116
117
+
### Prioritising jobs
118
+
Sometimes it is necessary for certain jobs to take precedence over others. For example; you may have a worker which has a primary purpose of dispatching somewhat
119
+
important emails to users. However, once an hour, you may need to run a _really_ important job which needs to be done on time and cannot wait in the queue for dozens
120
+
of emails to be dispatched before it can begin.
121
+
122
+
In order to make sure that an important job is run before others, you can set the `priority` field to an integer higher than `0` (the default). For example:
0 commit comments