....
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
root
2024-08-16 12:13:57 +02:00
parent e76f402c66
commit 961765f5d0
3 changed files with 85 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ function ping_redis() {
else return false;
}
function check_redis($group="scheduler_in") {
function check_redis($group="scheduler_in", $key="") {
global $REDIS_HOST;
@@ -23,6 +23,8 @@ function check_redis($group="scheduler_in") {
//print_r($members);
foreach ($members as $member) {
if ($key!="" && $member!=$key) continue; // check a specific key in a group
$value = $redis->get($member);
$json_data = base64_decode($value);
$data = json_decode($json_data,true);