diff --git a/demo/queue.php b/demo/queue.php index 1eca124..5067404 100644 --- a/demo/queue.php +++ b/demo/queue.php @@ -17,6 +17,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";