classes/helper/AbstractImportModel.php
protected function createJob()
    {
        $sQueueName = Settings::getValue('import_queue_name');

        $arQueueData = [
            'class' => static::class,
            'data'  => $this->arImportData,
        ];

        if (empty($sQueueName)) {
            Queue::push(ImportItemQueue::class, $arQueueData);
        } else {
            Queue::pushOn($sQueueName, ImportItemQueue::class, $arQueueData);
        }

        $this->setResultMethod();
    }
protected function createJob()
    {
        $sQueueName = Settings::getValue('import_queue_name');

        $arQueueData = [
            'class' => static::class,
            'data'  => $this->arImportData,
        ];

        if (empty($sQueueName)) {
            Queue::push(ImportItemQueue::class, $arQueueData);
        } else {
            Queue::pushOn($sQueueName, ImportItemQueue::class, $arQueueData);
        }

        $this->setResultMethod();
    }
protected function createJob ( ) { $ sQueueName = Settings :: getValue ( 'import_queue_name' ) ; $ arQueueData = [ 'class' => static :: class , 'data' => $ this -> arImportData , ] ; if ( empty ( $ sQueueName ) ) { Queue :: push ( ImportItemQueue :: class , $ arQueueData ) ; } else { Queue :: pushOn ( $ sQueueName , ImportItemQueue :: class , $ arQueueData ) ; } $ this -> setResultMethod ( ) ; }
Create queue job with import single item
@throws \Throwable
Create queue job with import single item