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

        // send order
        $orderResult = $this->syncOrderFactory->create()
            ->sync();

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

        // send order
        $orderResult = $this->syncOrderFactory->create()
            ->sync();

        return $orderResult;
    }
public function orderSync ( ) { if ( $ this -> jobHasAlreadyBeenRun ( 'ddg_automation_order_sync' ) ) { $ message = 'Skipping ddg_automation_order_sync job run' ; $ this -> helper -> log ( $ message ) ; return [ 'message' => $ message ] ; } // send order $ orderResult = $ this -> syncOrderFactory -> create ( ) -> sync ( ) ; return $ orderResult ; }
CRON FOR ORDER TRANSACTIONAL DATA.

@return array
CRON FOR ORDER TRANSACTIONAL DATA .