Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
30 righe
856 B
30 righe
856 B
<?php |
|
|
|
if (!empty($elabora_coda) && (!empty($_SESSION["ente"])) && $_SESSION["ente"]->hasModulo("verifica-art-80")) { |
|
|
|
alertManager::printCliInfo("SINCRONIZZAZIONE TUTTOVERIFICHE"); |
|
|
|
$ora = date("H"); |
|
if($ora == "9" || $ora == "11" || $ora == "13" || $ora == "15" || $ora == "17") { |
|
|
|
if (empty(getQueueLog($_SESSION["ente"]->codice, "syncTuttoVerifiche-H{$ora}"))) { |
|
|
|
try { |
|
|
|
$tuttoverifiche = Articolo80::init($_SESSION["ente"]->getInfo()); |
|
$sync = $tuttoverifiche->pullRequests(); |
|
if($sync) { writeQueueLog($_SESSION["ente"]->codice,"syncTuttoVerifiche-H{$ora}"); } |
|
|
|
} catch (\Throwable $th) { |
|
|
|
alertManager::printCliInfo("ERRORE DI SINCRONIZZAZIONE TUTTOVERIFICHE"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
?>
|