More code for import routine.

This commit is contained in:
James Cole
2017-06-22 21:50:10 +02:00
parent cddaccb7f7
commit edb355941c
9 changed files with 275 additions and 113 deletions

View File

@@ -64,8 +64,6 @@ class CsvProcessor implements FileProcessorInterface
*/
public function run(): bool
{
$this->job->status = 'running';
$this->job->save();
Log::debug('Now in CsvProcessor run(). Job is now running...');
$entries = $this->getImportArray();
@@ -84,9 +82,9 @@ class CsvProcessor implements FileProcessorInterface
* 3. Store journal.
* 4. Run rules.
*/
$this->job->addTotalSteps(4);
$this->job->addStepsDone(1);
$count++;
sleep(1);
}
return true;