mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 00:46:27 +02:00
Ajout d'une boucle sur l'envoie des queries pour diminuer le temps d'attente
This commit is contained in:
parent
57ef2d341c
commit
063f0c97a3
1 changed files with 26 additions and 20 deletions
|
@ -444,6 +444,8 @@
|
||||||
{
|
{
|
||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
|
for ($i = 0; $i < 30; $i++)
|
||||||
|
{
|
||||||
$webhookQueries = $db->getFromTableWhere('webhook_queries', ['progress' => false]);
|
$webhookQueries = $db->getFromTableWhere('webhook_queries', ['progress' => false]);
|
||||||
$webhookQueriesIds = [];
|
$webhookQueriesIds = [];
|
||||||
foreach ($webhookQueries as $webhookQuerie)
|
foreach ($webhookQueries as $webhookQuerie)
|
||||||
|
@ -469,5 +471,9 @@
|
||||||
|
|
||||||
echo "Query do to " . $webhookQuerie['url'] . " with datas " . $datas . "\n";
|
echo "Query do to " . $webhookQuerie['url'] . " with datas " . $datas . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//On attend 2 secondes
|
||||||
|
sleep(2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue