summaryrefslogtreecommitdiffstats
path: root/cron.php
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 /cron.php
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 'cron.php')
-rw-r--r--cron.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index c4bc9e9667c..c8ce5e2b50a 100644
--- a/cron.php
+++ b/cron.php
@@ -138,6 +138,7 @@ try {
$executedJobs = [];
while ($job = $jobList->getNext()) {
if (isset($executedJobs[$job->getId()])) {
+ $jobList->unlockJob($job);
break;
}