File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ JOBS = {
54
54
55
55
#### Failure Hooks
56
56
When an unhandled exception is raised by a job, a failure hook will be called if one exists enabling
57
- you to clean up any state left behind by your failed job.
57
+ you to clean up any state left behind by your failed job. Failure hook are run in your worker process (if your job fails).
58
58
59
59
A failure hook receives the failed ` Job ` instance along with the unhandled exception raised by your failed job as its arguments. Here's an example:
60
60
@@ -75,7 +75,8 @@ JOBS = {
75
75
```
76
76
77
77
#### Creation Hooks
78
- You can also run creation hooks, which are run just before a job begins.
78
+ You can also run creation hooks, which happen just after the creation of your ` Job ` instances and are executed in the process
79
+ in which the job was created, _ not the worker process_ .
79
80
80
81
A creation hook receives your ` Job ` instance as its only argument. Here's an example:
81
82
You can’t perform that action at this time.
0 commit comments