Skip to content

Commit 17ad7f8

Browse files
committed
Docs for before & after dequeue hooks.
1 parent d42e322 commit 17ad7f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/HOOKS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ The available hooks are:
7272
* `after_enqueue`: Called with the job args after a job is placed on the queue.
7373
Any exception raised propagates up to the code which queued the job.
7474

75+
* `before_dequeue`: Called with the job args before a job is removed from the queue.
76+
If the hook returns `false`, the job will not be removed from the queue.
77+
78+
* `after_dequeue`: Called with the job args after a job was removed from the queue.
79+
Any exception raised propagates up to the code which dequeued the job.
80+
7581
* `before_perform`: Called with the job args before perform. If it raises
7682
`Resque::Job::DontPerform`, the job is aborted. If other exceptions
7783
are raised, they will be propagated up the the `Resque::Failure`

0 commit comments

Comments
 (0)