mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
Fix up demo/queue.php job arguments
This commit is contained in:
parent
e3c953baf1
commit
7ef1ebbd97
@ -10,10 +10,10 @@ Resque::setBackend('127.0.0.1:6379');
|
|||||||
$class = new stdClass;
|
$class = new stdClass;
|
||||||
$class->test = 'test';
|
$class->test = 'test';
|
||||||
|
|
||||||
$args = array(
|
$args = new stdClass;
|
||||||
time(),
|
$args->time = time();
|
||||||
$class
|
$args->class = $class;
|
||||||
);
|
|
||||||
$jobId = Resque::enqueue('default', $argv[1], $args, true);
|
$jobId = Resque::enqueue('default', $argv[1], $args, true);
|
||||||
echo "Queued job ".$jobId."\n\n";
|
echo "Queued job ".$jobId."\n\n";
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user