summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.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 /lib/private/Server.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 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index a4294ee2c88..0b7b8f9e403 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -362,7 +362,11 @@ class Server extends ServerContainer implements IServerContainer {
});
$this->registerService('JobList', function (Server $c) {
$config = $c->getConfig();
- return new \OC\BackgroundJob\JobList($c->getDatabaseConnection(), $config);
+ return new \OC\BackgroundJob\JobList(
+ $c->getDatabaseConnection(),
+ $config,
+ new TimeFactory()
+ );
});
$this->registerService('Router', function (Server $c) {
$cacheFactory = $c->getMemCacheFactory();