Ajout d'une boucle sur l'envoie des queries pour diminuer le temps d'attente

This commit is contained in:
OsaAjani 2016-01-22 16:56:28 +01:00
parent 57ef2d341c
commit 063f0c97a3
1 changed files with 26 additions and 20 deletions

View File

@ -444,6 +444,8 @@
{
global $db;
for ($i = 0; $i < 30; $i++)
{
$webhookQueries = $db->getFromTableWhere('webhook_queries', ['progress' => false]);
$webhookQueriesIds = [];
foreach ($webhookQueries as $webhookQuerie)
@ -469,5 +471,9 @@
echo "Query do to " . $webhookQuerie['url'] . " with datas " . $datas . "\n";
}
//On attend 2 secondes
sleep(2);
}
}
}