Skip to content

Commit e1872cc

Browse files
committed
Merge pull request #143 from HRMWeb/after-enqueue-callback-token
Added token as an argument to the afterEnqueue callback
2 parents d2c3249 + f91352d commit e1872cc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ Called after a job has been queued using the `Resque::enqueue` method. Arguments
384384
* Class - string containing the name of scheduled job
385385
* Arguments - array of arguments supplied to the job
386386
* Queue - string containing the name of the queue the job was added to
387+
* Id - string containing the new token of the enqueued job
387388

388389
## Contributors ##
389390

lib/Resque.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ public static function enqueue($queue, $class, $args = null, $trackStatus = fals
189189
'class' => $class,
190190
'args' => $args,
191191
'queue' => $queue,
192+
'id' => $result,
192193
));
193194
}
194195

0 commit comments

Comments
 (0)