MCPcopy Create free account
hub / github.com/Rello/analytics / ContextChatInitialImport

Class ContextChatInitialImport

lib/BackgroundJob/ContextChatInitialImport.php:19–41  ·  view source on GitHub ↗

* Re-submits all datasets with indexing enabled after context chat requested an initial import */

Source from the content-addressed store, hash-verified

17 * Re-submits all datasets with indexing enabled after context chat requested an initial import
18 */
19class ContextChatInitialImport extends QueuedJob
20{
21
22 private $logger;
23 private $DatasetService;
24
25 public function __construct(ITimeFactory $time,
26 LoggerInterface $logger,
27 DatasetService $DatasetService
28 )
29 {
30 parent::__construct($time);
31 $this->logger = $logger;
32 $this->DatasetService = $DatasetService;
33 }
34
35 public function run($arguments)
36 {
37 $count = $this->DatasetService->providerAll();
38 $this->logger->info('Analytics context chat initial import submitted ' . $count . ' datasets');
39 }
40
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected