diff --git a/demo/queue.php b/demo/queue.php index 52f2f0b..870086e 100644 --- a/demo/queue.php +++ b/demo/queue.php @@ -13,6 +13,10 @@ $args = array( '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"; \ No newline at end of file +echo "Queued job ".$jobId."\n\n";