Model/Cron.php
public function catalogSync()
    {
        if ($this->jobHasAlreadyBeenRun('ddg_automation_catalog_sync')) {
            $message = 'Skipping ddg_automation_catalog_sync job run';
            $this->helper->log($message);
            return ['message' => $message];
        }

        $result = $this->catalogFactory->create()
            ->sync();

        return $result;
    }
public function catalogSync()
    {
        if ($this->jobHasAlreadyBeenRun('ddg_automation_catalog_sync')) {
            $message = 'Skipping ddg_automation_catalog_sync job run';
            $this->helper->log($message);
            return ['message' => $message];
        }

        $result = $this->catalogFactory->create()
            ->sync();

        return $result;
    }
public function catalogSync ( ) { if ( $ this -> jobHasAlreadyBeenRun ( 'ddg_automation_catalog_sync' ) ) { $ message = 'Skipping ddg_automation_catalog_sync job run' ; $ this -> helper -> log ( $ message ) ; return [ 'message' => $ message ] ; } $ result = $ this -> catalogFactory -> create ( ) -> sync ( ) ; return $ result ; }
CRON FOR CATALOG SYNC.

@return array
CRON FOR CATALOG SYNC .