aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/BackgroundJob
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-18 14:27:48 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-21 01:59:25 +0200
commitd0a2fa050694232554242c6344439915f3f09d12 (patch)
tree083fccfd8c248efcfba089aa6444697665258a45 /lib/public/BackgroundJob
parent7e3ce8352666af86d597e1fdce95bfe57531207e (diff)
downloadnextcloud-server-d0a2fa050694232554242c6344439915f3f09d12.tar.gz
nextcloud-server-d0a2fa050694232554242c6344439915f3f09d12.zip
Lock jobs while executing them, to allow multiple executors to run in parallel
Diffstat (limited to 'lib/public/BackgroundJob')
-rw-r--r--lib/public/BackgroundJob/IJobList.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/BackgroundJob/IJobList.php b/lib/public/BackgroundJob/IJobList.php
index 5a76ce1ba26..9e401e68419 100644
--- a/lib/public/BackgroundJob/IJobList.php
+++ b/lib/public/BackgroundJob/IJobList.php
@@ -93,10 +93,21 @@ interface IJobList {
public function setLastJob($job);
/**
+ * Remove the reservation for a job
+ *
+ * @param IJob $job
+ * @since 9.1.0
+ */
+ public function unlockJob($job);
+
+ /**
* get the id of the last ran job
*
* @return int
* @since 7.0.0
+ * @deprecated 9.1.0 - The functionality behind the value is deprecated, it
+ * only tells you which job finished last, but since we now allow multiple
+ * executors to run in parallel, it's not used to calculate the next job.
*/
public function getLastJob();