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 = {
5454
5555#### Failure Hooks
5656When 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).
5858
5959A failure hook receives the failed ` Job ` instance along with the unhandled exception raised by your failed job as its arguments. Here's an example:
6060
@@ -75,7 +75,8 @@ JOBS = {
7575```
7676
7777#### 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_ .
7980
8081A creation hook receives your ` Job ` instance as its only argument. Here's an example:
8182
You can’t perform that action at this time.
0 commit comments