mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 21:52:21 +00:00
Merge pull request #143 from HRMWeb/after-enqueue-callback-token
Added token as an argument to the afterEnqueue callback
This commit is contained in:
commit
e1872cca39
2 changed files with 2 additions and 0 deletions
|
@ -384,6 +384,7 @@ Called after a job has been queued using the `Resque::enqueue` method. Arguments
|
||||||
* Class - string containing the name of scheduled job
|
* 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
|
* Queue - string containing the name of the queue the job was added to
|
||||||
|
* Id - string containing the new token of the enqueued job
|
||||||
|
|
||||||
## Contributors ##
|
## Contributors ##
|
||||||
|
|
||||||
|
|
|
@ -189,6 +189,7 @@ class Resque
|
||||||
'class' => $class,
|
'class' => $class,
|
||||||
'args' => $args,
|
'args' => $args,
|
||||||
'queue' => $queue,
|
'queue' => $queue,
|
||||||
|
'id' => $result,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue