diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-03-04 13:42:25 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2022-03-04 13:42:25 +0300 |
commit | 17190f33f4c179f82b9e26a0c7ecec022bcaae55 (patch) | |
tree | 873b2bcae3787eed65719bc269a45445115820cb /lib | |
parent | 19cd8b16bfee5ef0f90b9f05e7636cfe688f7361 (diff) |
Make monthly report time insensitive
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/BackgroundJobs/MonthlyReport.php | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |