Model/Cron.php
public function sendCampaigns()
    {
        if ($this->jobHasAlreadyBeenRun('ddg_automation_campaign')) {
            $this->helper->log('Skipping ddg_automation_campaign job run');
            return;
        }

        $this->campaignFactory->create()->sendCampaigns();
    }
public function sendCampaigns()
    {
        if ($this->jobHasAlreadyBeenRun('ddg_automation_campaign')) {
            $this->helper->log('Skipping ddg_automation_campaign job run');
            return;
        }

        $this->campaignFactory->create()->sendCampaigns();
    }
public function sendCampaigns ( ) { if ( $ this -> jobHasAlreadyBeenRun ( 'ddg_automation_campaign' ) ) { $ this -> helper -> log ( 'Skipping ddg_automation_campaign job run' ) ; return ; } $ this -> campaignFactory -> create ( ) -> sendCampaigns ( ) ; }
Send email campaigns.

@throws \Magento\Framework\Exception\LocalizedException

@return null
Send email campaigns .