Ajout d'une boucle sur l'envoie des queries pour diminuer le temps d'attente
This commit is contained in:
parent
57ef2d341c
commit
063f0c97a3
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue