Skip to content
Snippets Groups Projects
Commit 30923ae4 authored by Andrés Blanco's avatar Andrés Blanco
Browse files

Merge branch 'release/v1.0.1'

parents 26537dd3 fdd581db
No related branches found
Tags v1.0.1
No related merge requests found
......@@ -63,6 +63,7 @@ class RestMessenger
public function setRedisQueuePrefix($prefix)
{
$this->conf['queue-prefix'] = preg_replace("/[^a-z0-9\.]/", "", strtolower($prefix));
\Resque_Redis::prefix($this->conf['queue-prefix']);
}
/**
......@@ -266,26 +267,4 @@ class RestMessenger
{
return isset($this->conf['env-workers']['dir-pid-files']);
}
public function status()
{
// Checkear la conexiona la DB y a Redis
try
{
$connected = @fsockopen("www.example.com", 80);
//website, port (try 80 or 443)
if ($connected){
$is_conn = true; //action when connected
fclose($connected);
}else{
$is_conn = false; //action in connection failure
}
return $is_conn;
}
catch(\RedisException $e)
{
// Fall back to other db usage.
throw $e;
}
}
}
v1.0.0
v1.0.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment