mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +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->test = 'test';
|
||||
|
||||
$args = array(
|
||||
time(),
|
||||
$class
|
||||
);
|
||||
$args = new stdClass;
|
||||
$args->time = time();
|
||||
$args->class = $class;
|
||||
|
||||
$jobId = Resque::enqueue('default', $argv[1], $args, true);
|
||||
echo "Queued job ".$jobId."\n\n";
|
||||
?>
|
Loading…
Reference in New Issue
Block a user