mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
Merge pull request #60 from jjfrey/fix-demo-status
fixing missing and incorrect paths for Resque class and Resque_Job_Statu...
This commit is contained in:
commit
64cd1874ed
@ -3,7 +3,8 @@ if(empty($argv[1])) {
|
|||||||
die('Specify the ID of a job to monitor the status of.');
|
die('Specify the ID of a job to monitor the status of.');
|
||||||
}
|
}
|
||||||
|
|
||||||
require '../lib/resque.php';
|
require '../lib/Resque/Job/Status.php';
|
||||||
|
require '../lib/Resque.php';
|
||||||
date_default_timezone_set('GMT');
|
date_default_timezone_set('GMT');
|
||||||
Resque::setBackend('127.0.0.1:6379');
|
Resque::setBackend('127.0.0.1:6379');
|
||||||
|
|
||||||
@ -17,4 +18,4 @@ while(true) {
|
|||||||
fwrite(STDOUT, "Status of ".$argv[1]." is: ".$status->get()."\n");
|
fwrite(STDOUT, "Status of ".$argv[1]." is: ".$status->get()."\n");
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user