Skip to content

Commit

Permalink
add gss.updatels.interval config
Browse files Browse the repository at this point in the history
  • Loading branch information
flesueur committed Oct 25, 2024
1 parent d36ae2d commit 403e344
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/BackgroundJobs/UpdateLookupServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,20 @@
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\IJob;
use OCP\BackgroundJob\TimedJob;
use OCP\IConfig;

class UpdateLookupServer extends TimedJob {


public function __construct(
ITimeFactory $time,
IConfig $config,
private GlobalSiteSelector $globalSiteSelector,
private Slave $slave
) {
parent::__construct($time);

$this->setInterval(86400);
$this->setInterval($config->getSystemValueInt('gss.updatels.interval', 86400));
$this->setTimeSensitivity(IJob::TIME_SENSITIVE);
}

Expand Down

0 comments on commit 403e344

Please sign in to comment.