From 9c283e8bb6346176f3ad75f6215971f3e09f9f1c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 21 Apr 2016 13:15:18 +0200 Subject: [PATCH] Housekeeping: add getPendingTasks helper method --- library/Director/Db/Housekeeping.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Director/Db/Housekeeping.php b/library/Director/Db/Housekeeping.php index bdbc9ac2..7fa672f1 100644 --- a/library/Director/Db/Housekeeping.php +++ b/library/Director/Db/Housekeeping.php @@ -64,6 +64,11 @@ class Housekeeping ); } + public function hasPendingTasks() + { + return count($this->getPendingTaskSummary()) > 0 + } + public function runAllTasks() { $result = array();