make the queue for an enqueued job available in the afterEnqueue event

This commit is contained in:
Chris Boulton 2012-05-10 22:13:28 +10:00
parent 3188265655
commit b0fbfa4f15
2 changed files with 4 additions and 2 deletions

View File

@ -316,8 +316,9 @@ Called whenever a job fails. Arguments passed (in this order) include:
Called after a job has been queued using the `Resque::enqueue` method. Arguments passed
(in this order) include:
* Class - string containing the name of the class the job was scheduled in
* Class - string containing the name of scheduled job
* Arguments - array of arguments supplied to the job
* Queue - string containing the name of the queue the job was added to
## Contributors ##

View File

@ -155,6 +155,7 @@ class Resque
Resque_Event::trigger('afterEnqueue', array(
'class' => $class,
'args' => $args,
'queue' => $queue,
));
}