Changed timeout, logging added
This commit is contained in:
parent
cd129665ef
commit
e232c683b6
2 changed files with 6 additions and 2 deletions
|
|
@ -649,11 +649,15 @@ function find_worker_processes() {
|
|||
*/
|
||||
function poller_worker_process() {
|
||||
|
||||
$stamp = (float)microtime(true);
|
||||
|
||||
$timeout = 10;
|
||||
do {
|
||||
$found = find_worker_processes();
|
||||
} while (!$found && (poller_total_entries() > 0) && (--$timeout > 0));
|
||||
|
||||
logger('Duration: '.number_format(microtime(true) - $stamp, 3), LOGGER_DEBUG);
|
||||
|
||||
if ($found) {
|
||||
$r = q("SELECT * FROM `workerqueue` WHERE `pid` = %d", intval(getmypid()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue