From a51c1d5176d0285a4fecc6e1e84d9f7dc4abaca5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 2 May 2025 13:18:48 +0300 Subject: [PATCH] fix tasks_run never incremented --- classes/PluginHost.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/PluginHost.php b/classes/PluginHost.php index e417fde1f..9bdf7c0b4 100644 --- a/classes/PluginHost.php +++ b/classes/PluginHost.php @@ -972,6 +972,8 @@ class PluginHost { $rc = (int) $task['callback'](); $task_duration = time() - $task_started; + ++$tasks_run; + Debug::log("Task $task_name has finished in $task_duration seconds with RC=$rc, recording timestamp..."); if ($task_record) {