summaryrefslogtreecommitdiffstats
path: root/lib/private/backgroundjob/timedjob.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/backgroundjob/timedjob.php')
-rw-r--r--lib/private/backgroundjob/timedjob.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/backgroundjob/timedjob.php b/lib/private/backgroundjob/timedjob.php
index ae9f33505ab..09e05f1d846 100644
--- a/lib/private/backgroundjob/timedjob.php
+++ b/lib/private/backgroundjob/timedjob.php
@@ -31,11 +31,11 @@ abstract class TimedJob extends Job {
* run the job if
*
* @param JobList $jobList
+ * @param \OC\Log $logger
*/
- public function execute($jobList) {
+ public function execute($jobList, $logger = null) {
if ((time() - $this->lastRun) > $this->interval) {
- $jobList->setLastRun($this);
- $this->run($this->argument);
+ parent::execute($jobList, $logger);
}
}
}