Fix up demo/queue.php job arguments

This commit is contained in:
Chris Boulton 2010-04-19 00:12:35 +10:00
parent e3c953baf1
commit 7ef1ebbd97

View File

@ -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";
?> ?>