diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-01-11 02:39:46 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-01-11 02:39:46 +0300 |
commit | d2851ff833c4adf4a821ff776036c54bd05478b2 (patch) | |
tree | 81bf8e55e7e906a407a5e4396e127575c201b457 /lib/Cron/Index.php | |
parent | c5410b0784a64e7c75c4b7da6e10f10a51fdd532 (diff) |
cron only after first index
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Cron/Index.php')
-rw-r--r-- | lib/Cron/Index.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Cron/Index.php b/lib/Cron/Index.php index b0c3d06..b03fe3e 100644 --- a/lib/Cron/Index.php +++ b/lib/Cron/Index.php @@ -109,6 +109,10 @@ class Index extends TimedJob { try { $provider = $this->providerService->getProvider($index->getProviderId()); + if (!$this->providerService->isProviderIndexed($provider->getId())) { + continue; + } + $this->indexService->updateDocument($platform, $provider, $index); } catch (Exception $e) { $this->runner->exception($e->getMessage(), false); |