Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-18 15:27:48 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-21 02:59:25 +0300
commitd0a2fa050694232554242c6344439915f3f09d12 (patch)
tree083fccfd8c248efcfba089aa6444697665258a45 /cron.php
parent7e3ce8352666af86d597e1fdce95bfe57531207e (diff)
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;
}