mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Improve comments and readability
This commit is contained in:
parent
ad33efbc67
commit
1abbad3f5e
5 changed files with 53 additions and 13 deletions
3
demo/check_status.php
Normal file → Executable file
3
demo/check_status.php
Normal file → Executable 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
4
demo/queue.php
Normal file → Executable 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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue