mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 13:42:22 +00:00
Global reformat
This commit is contained in:
parent
14c0e26559
commit
51fda513f4
11 changed files with 532 additions and 533 deletions
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
if(empty($argv[1])) {
|
||||
die('Specify the name of a job to add. e.g, php queue.php PHP_Job');
|
||||
if (empty($argv[1])) {
|
||||
die('Specify the name of a job to add. e.g, php queue.php PHP_Job');
|
||||
}
|
||||
|
||||
require __DIR__ . '/init.php';
|
||||
|
@ -12,15 +12,15 @@ Resque::setBackend('127.0.0.1:6379');
|
|||
//Resque::setBackend('redis://user:pass@a.host.name:3432/2');
|
||||
|
||||
$args = array(
|
||||
'time' => time(),
|
||||
'array' => array(
|
||||
'test' => 'test',
|
||||
),
|
||||
'time' => time(),
|
||||
'array' => array(
|
||||
'test' => 'test',
|
||||
),
|
||||
);
|
||||
if (empty($argv[2])) {
|
||||
$jobId = Resque::enqueue('default', $argv[1], $args, true);
|
||||
$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…
Add table
Add a link
Reference in a new issue