mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +00:00
make the queue for an enqueued job available in the afterEnqueue event
This commit is contained in:
parent
3188265655
commit
b0fbfa4f15
@ -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
|
Called after a job has been queued using the `Resque::enqueue` method. Arguments passed
|
||||||
(in this order) include:
|
(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
|
* Arguments - array of arguments supplied to the job
|
||||||
|
* Queue - string containing the name of the queue the job was added to
|
||||||
|
|
||||||
## Contributors ##
|
## Contributors ##
|
||||||
|
|
||||||
|
@ -154,7 +154,8 @@ class Resque
|
|||||||
if ($result) {
|
if ($result) {
|
||||||
Resque_Event::trigger('afterEnqueue', array(
|
Resque_Event::trigger('afterEnqueue', array(
|
||||||
'class' => $class,
|
'class' => $class,
|
||||||
'args' => $args,
|
'args' => $args,
|
||||||
|
'queue' => $queue,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user