diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-18 14:27:48 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-21 01:59:25 +0200 |
commit | d0a2fa050694232554242c6344439915f3f09d12 (patch) | |
tree | 083fccfd8c248efcfba089aa6444697665258a45 /cron.php | |
parent | 7e3ce8352666af86d597e1fdce95bfe57531207e (diff) | |
download | nextcloud-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.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -138,6 +138,7 @@ try { $executedJobs = []; while ($job = $jobList->getNext()) { if (isset($executedJobs[$job->getId()])) { + $jobList->unlockJob($job); break; } |