summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorNoveen Sachdeva <noveen.sachdeva@research.iiit.ac.in>2017-04-25 17:39:58 +0200
committerJoas Schilling <coding@schilljs.com>2017-04-25 17:39:58 +0200
commit1b1f403a5da0a170480b7ff376cd28d1ac7a64e0 (patch)
tree97cdb615848bfc137f20387c7a632ccf9beaee44 /lib/public
parent8ef25a7628d44465d4777686227407f9a2067700 (diff)
downloadnextcloud-server-1b1f403a5da0a170480b7ff376cd28d1ac7a64e0.tar.gz
nextcloud-server-1b1f403a5da0a170480b7ff376cd28d1ac7a64e0.zip
Add duration of last job execution to the table
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/BackgroundJob/IJobList.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/public/BackgroundJob/IJobList.php b/lib/public/BackgroundJob/IJobList.php
index fbc46192227..d7c2642712c 100644
--- a/lib/public/BackgroundJob/IJobList.php
+++ b/lib/public/BackgroundJob/IJobList.php
@@ -91,7 +91,7 @@ interface IJobList {
* @param \OCP\BackgroundJob\IJob $job
* @since 7.0.0
*/
- public function setLastJob($job);
+ public function setLastJob(IJob $job);
/**
* Remove the reservation for a job
@@ -99,7 +99,7 @@ interface IJobList {
* @param IJob $job
* @since 9.1.0
*/
- public function unlockJob($job);
+ public function unlockJob(IJob $job);
/**
* get the id of the last ran job
@@ -115,8 +115,17 @@ interface IJobList {
/**
* set the lastRun of $job to now
*
- * @param \OCP\BackgroundJob\IJob $job
+ * @param IJob $job
* @since 7.0.0
*/
- public function setLastRun($job);
+ public function setLastRun(IJob $job);
+
+ /**
+ * set the run duration of $job
+ *
+ * @param IJob $job
+ * @param $timeTaken
+ * @since 12.0.0
+ */
+ public function setExecutionTime(IJob $job, $timeTaken);
}