Skip to content
Snippets Groups Projects
Commit dcd61991 authored by VESSILLER's avatar VESSILLER
Browse files

NEW amelioration tache planifiee indexation

parent fe6515be
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,6 @@ use DateTime; ...@@ -18,7 +18,6 @@ use DateTime;
use DateTimeZone; use DateTimeZone;
use Exception; use Exception;
use OCA\Dematpayslip\Db\DematpayslipArchive;
use OCA\Dematpayslip\Db\DematpayslipArchiveMapper; use OCA\Dematpayslip\Db\DematpayslipArchiveMapper;
use OCA\Dematpayslip\Db\DematpayslipProcessMapper; use OCA\Dematpayslip\Db\DematpayslipProcessMapper;
use OCA\Dematpayslip\Db\DematpayslipProcessSkipMapper; use OCA\Dematpayslip\Db\DematpayslipProcessSkipMapper;
...@@ -222,8 +221,8 @@ class IndexationProcess extends TimedJob { ...@@ -222,8 +221,8 @@ class IndexationProcess extends TimedJob {
$this->_timeZone = new DateTimeZone($timeZoneName); $this->_timeZone = new DateTimeZone($timeZoneName);
// run once by interval // run once by interval
$taskDefaultInterval = 60; //$taskDefaultInterval = 60;
//$taskDefaultInterval = 3600; // 1h $taskDefaultInterval = 3600; // 1h
$taskInterval = intval($this->_config->getAppValue($this->_appName,$this->_appName . '_indexation_cron_interval', $taskDefaultInterval)); $taskInterval = intval($this->_config->getAppValue($this->_appName,$this->_appName . '_indexation_cron_interval', $taskDefaultInterval));
//print __METHOD__ . ' : time_zone_name=' . $timeZoneName . ', cron_interval=' . $taskInterval . "\n"; //print __METHOD__ . ' : time_zone_name=' . $timeZoneName . ', cron_interval=' . $taskInterval . "\n";
$this->setInterval($taskInterval); $this->setInterval($taskInterval);
...@@ -278,12 +277,8 @@ class IndexationProcess extends TimedJob { ...@@ -278,12 +277,8 @@ class IndexationProcess extends TimedJob {
if (!empty($processList)) { if (!empty($processList)) {
$process = current($processList); $process = current($processList);
if ($process->getPhase() == DematpayslipProcess::PHASE_ID_INDEXATION) { if ($process->getPhase() == DematpayslipProcess::PHASE_ID_INDEXATION) {
$this->_log('Indexation process : Load');
$process->load($this->_appName, $this->_config, $this->_dbConnection, $this->_l10n, $this->_rootFolder, $this->_shareManager, $this->_userManager, $userId, $this->_dematpayslipProcessMapper, $this->_dematpayslipProcessSkipMapper, $this->_dematpayslipUserMapper, $this->_timeZone); $process->load($this->_appName, $this->_config, $this->_dbConnection, $this->_l10n, $this->_rootFolder, $this->_shareManager, $this->_userManager, $userId, $this->_dematpayslipProcessMapper, $this->_dematpayslipProcessSkipMapper, $this->_dematpayslipUserMapper, $this->_timeZone);
$this->_log('Indexation process : Indexation Begin');
$result = $process->indexation($processMsgList); $result = $process->indexation($processMsgList);
$this->_log('Indexation process : Indexation End');
if ($result < 0) { if ($result < 0) {
$this->_log('Indexation process : Error : ', self::LOG_ERROR); $this->_log('Indexation process : Error : ', self::LOG_ERROR);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment