From e5c2c66487eceea38d7fbe792238991084718bd8 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 20 Sep 2016 15:45:55 +0200 Subject: [PATCH] Show the worker queue count if the workers are active --- doc/Settings.md | 3 ++- doc/de/Settings.md | 3 ++- mod/admin.php | 1 + view/templates/admin_summary.tpl | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/Settings.md b/doc/Settings.md index 6eb967acc6..06ef85c436 100644 --- a/doc/Settings.md +++ b/doc/Settings.md @@ -9,7 +9,8 @@ This number should decrease quickly. The second is the messages which could for various reasons not being delivered. They will be resend later. You can have a quick glance into that second queus in the "Inspect Queue" section of the admin panel. -If you have activated the background workers, there might be a third number representing the count of jobs queued for the workers. +If you have activated the background workers, there is a third number representing the count of jobs queued for the workers. +These worker tasks are prioritised and are done accordingly. Then you get an overview of the accounts on your node, which can be moderated in the "Users" section of the panel. As well as an overview of the currently active addons diff --git a/doc/de/Settings.md b/doc/de/Settings.md index f72d4fd75b..2b157e6d9e 100644 --- a/doc/de/Settings.md +++ b/doc/de/Settings.md @@ -9,8 +9,9 @@ Diese Zahl sollte sich relativ schnell sinken. Die zweite Zahl gibt die Anzahl von Nachrichten an, die nicht zugestellt werden konnten. Die Zustellung wird zu einem späteren Zeitpunkt noch einmal versucht. Unter dem Punkt "Warteschlange Inspizieren" kannst du einen schnellen Blick auf die zweite Warteschlange werfen. -Solltest du für die Hintergrundprozesse die Worker aktiviert haben, könntest du eine dritte Zahl angezeigt bekommen. +Solltest du für die Hintergrundprozesse die Worker aktiviert haben, wird eine dritte Zahl angezeigt. Diese repräsentiert die Anzahl der Aufgaben, die die Worker noch vor sich haben. +Die Aufgaben der Worker sind priorisiert und werden anhand dieser Prioritäten abgearbeitet. Des weiteren findest du eine Übersicht über die Accounts auf dem Friendica Knoten, die unter dem Punkt "Nutzer" moderiert werden können. Sowie eine Liste der derzeit aktivierten Addons. diff --git a/mod/admin.php b/mod/admin.php index 0749fd1861..4dc6064a7d 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -460,6 +460,7 @@ function admin_page_summary(&$a) { '$title' => t('Administration'), '$page' => t('Summary'), '$queues' => $queues, + '$workeractive' => get_config('system','worker'), '$users' => array(t('Registered users'), $users), '$accounts' => $accounts, '$pending' => array(t('Pending registrations'), $pending), diff --git a/view/templates/admin_summary.tpl b/view/templates/admin_summary.tpl index 70f95ca5ef..08e84b0085 100644 --- a/view/templates/admin_summary.tpl +++ b/view/templates/admin_summary.tpl @@ -4,7 +4,7 @@
{{$queues.label}}
-
{{$queues.deliverq}} - {{$queues.queue}}{{if $queues.workerq}} - {{$queues.workerq}}{{/if}}
+
{{$queues.deliverq}} - {{$queues.queue}}{{if $workeractive}} - {{$queues.workerq}}{{/if}}
{{$pending.0}}