mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 12:03:14 +00:00
Merge branch '3.8'
Conflicts: composer.json composer.lock lib/classes/task/Scheduler.php
This commit is contained in:
@@ -372,7 +372,14 @@ class task_Scheduler
|
||||
);
|
||||
|
||||
if (is_resource($taskPoll[$tkey]["process"])) {
|
||||
$this->sleep(2);
|
||||
// let the process lock and write it's pid
|
||||
$sleepTimeout = microtime(true) + 10;
|
||||
do {
|
||||
usleep(500000);
|
||||
if (null !== $taskPoll[$tkey]['task']->getPID()) {
|
||||
break;
|
||||
}
|
||||
} while (microtime(true) < $sleepTimeout);
|
||||
}
|
||||
|
||||
if (is_resource($taskPoll[$tkey]["process"]) && ($pid = $taskPoll[$tkey]['task']->getPID()) !== null) {
|
||||
|
Reference in New Issue
Block a user