Skip to content

Commit

Permalink
removing log of empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
markmiddleton committed Nov 13, 2023
1 parent aa0a6fa commit fafda48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jobs/AlgoliaBulkLoadTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,15 @@ public function execute($queue)

for ($x=0; $x<$variantCount; $x=$x+$this->standardLimit) {
$queue->push(new AlgoliaChunkLoadTask([
'description' => Craft::t('algolia-sync', 'Queueing a chunk of '.$this->loadRecordType.' records to process start ('.$x.') limit ('.$this->standardLimit.')'),
'description' => Craft::t('algolia-sync', 'Queueing a chunk of '.$elementType.' records to process start ('.$x.') limit ('.$this->standardLimit.')'),
'loadRecordType' => $this->loadRecordType,
'limit' => $this->standardLimit,
'offset' => $x,
'elementType' => $elementType
]));
}
}
AlgoliaSync::$plugin->algoliaSyncService->logger("finished AlgoliaBulkLoadTask", basename(__FILE__) , __LINE__);
break;

CASE 'category':
Expand Down
2 changes: 2 additions & 0 deletions src/jobs/AlgoliaChunkLoadTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public function execute($queue)

Craft::info("Executing the Queue", "algolia-sync");

AlgoliaSync::$plugin->algoliaSyncService->logger("Create a chunck load task", basename(__FILE__) , __LINE__);

// as an example, you would receive one of the rows below
//[0] => [entry][1]
//[1] => [entry][6]
Expand Down

0 comments on commit fafda48

Please sign in to comment.