mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 16:14:26 +02:00
Merge remote-tracking branch 'upstream/develop' into 1702-only-worker
Conflicts: include/onepoll.php include/queue.php
This commit is contained in:
commit
77e8c44016
26 changed files with 13391 additions and 13065 deletions
|
@ -211,6 +211,16 @@ function poller_exec_function($queue, $funcname, $argv) {
|
|||
|
||||
$duration = number_format(microtime(true) - $stamp, 3);
|
||||
|
||||
if ($duration > 3600) {
|
||||
logger("Prio ".$queue["priority"].": ".$queue["parameter"]." - longer than 1 hour (".round($duration/60, 3).")", LOGGER_DEBUG);
|
||||
} elseif ($duration > 600) {
|
||||
logger("Prio ".$queue["priority"].": ".$queue["parameter"]." - longer than 10 minutes (".round($duration/60, 3).")", LOGGER_DEBUG);
|
||||
} elseif ($duration > 300) {
|
||||
logger("Prio ".$queue["priority"].": ".$queue["parameter"]." - longer than 5 minutes (".round($duration/60, 3).")", LOGGER_DEBUG);
|
||||
} elseif ($duration > 120) {
|
||||
logger("Prio ".$queue["priority"].": ".$queue["parameter"]." - longer than 2 minutes (".round($duration/60, 3).")", LOGGER_DEBUG);
|
||||
}
|
||||
|
||||
logger("Process ".$mypid." - Prio ".$queue["priority"]." - ID ".$queue["id"].": ".$funcname." - done in ".$duration." seconds.");
|
||||
|
||||
// Write down the performance values into the log
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue