Skip to content

Commit 6138f4e

Browse files
committed
Add which process hooks run in
1 parent 6453882 commit 6138f4e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ JOBS = {
5454

5555
#### Failure Hooks
5656
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).
5858

5959
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:
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

8081
A creation hook receives your `Job` instance as its only argument. Here's an example:
8182

0 commit comments

Comments
 (0)