Improve comments and readability

This commit is contained in:
Iskandar Najmuddin 2014-05-05 14:47:43 +00:00
parent ad33efbc67
commit 1abbad3f5e
5 changed files with 53 additions and 13 deletions

3
demo/check_status.php Normal file → Executable file
View file

@ -7,6 +7,9 @@ require __DIR__ . '/init.php';
date_default_timezone_set('GMT');
Resque::setBackend('127.0.0.1:6379');
// You can also use a DSN-style format:
//Resque::setBackend('redis://user:pass@127.0.0.1:6379');
//Resque::setBackend('redis://user:pass@a.host.name:3432/2');
$status = new Resque_Job_Status($argv[1]);
if(!$status->isTracking()) {

4
demo/queue.php Normal file → Executable file
View file

@ -7,6 +7,10 @@ require __DIR__ . '/init.php';
date_default_timezone_set('GMT');
Resque::setBackend('127.0.0.1:6379');
// You can also use a DSN-style format:
//Resque::setBackend('redis://user:pass@127.0.0.1:6379');
//Resque::setBackend('redis://user:pass@a.host.name:3432/2');
$args = array(
'time' => time(),
'array' => array(