mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
repair PHP Notice, on line 17
when run <php queue.php PHP_Job>, it has a PHP Notice. I think it's right command <php queue.php default PHP_Job>.
This commit is contained in:
parent
02809d6632
commit
8ccc31632a
@ -13,6 +13,10 @@ $args = array(
|
|||||||
'test' => 'test',
|
'test' => 'test',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
if (empty($argv[2])) {
|
||||||
|
$jobId = Resque::enqueue('default', $argv[1], $args, true);
|
||||||
|
} else {
|
||||||
$jobId = Resque::enqueue($argv[1], $argv[2], $args, true);
|
$jobId = Resque::enqueue($argv[1], $argv[2], $args, true);
|
||||||
|
}
|
||||||
|
|
||||||
echo "Queued job ".$jobId."\n\n";
|
echo "Queued job ".$jobId."\n\n";
|
Loading…
Reference in New Issue
Block a user