From 17190f33f4c179f82b9e26a0c7ecec022bcaae55 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 4 Mar 2022 11:42:25 +0100 Subject: Make monthly report time insensitive Signed-off-by: Vincent Petry --- lib/BackgroundJobs/MonthlyReport.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/BackgroundJobs/MonthlyReport.php b/lib/BackgroundJobs/MonthlyReport.php index d81ddcc..eaad1d3 100644 --- a/lib/BackgroundJobs/MonthlyReport.php +++ b/lib/BackgroundJobs/MonthlyReport.php @@ -24,6 +24,7 @@ namespace OCA\Survey_Client\BackgroundJobs; use OC\BackgroundJob\TimedJob; use OCA\Survey_Client\AppInfo\Application; use OCP\AppFramework\Http; +use OCP\BackgroundJob\IJob; class MonthlyReport extends TimedJob { @@ -33,6 +34,7 @@ class MonthlyReport extends TimedJob { public function __construct() { // Run all 28 days $this->setInterval(28 * 24 * 60 * 60); + $this->setTimeSensitivity(IJob::TIME_INSENSITIVE); } protected function run($argument) { -- cgit v1.2.3