application/Espo/Core/Utils/ScheduledJob.php
public function isCronConfigured()
    {
        $r1From = new \DateTime('-' . $this->checkingCronPeriod);
        $r1To = new \DateTime('+' . $this->checkingCronPeriod);

        $r2From = new \DateTime('- 1 hour');
        $r2To = new \DateTime();

        $format = \Espo\Core\Utils\DateTime::$systemDateTimeFormat;

        $selectParams = [
            'select' => ['id'],
            'leftJoins' => ['scheduledJob'],
            'whereClause' => [
                'OR' => [
                    [
                        ['executedAt>=' => $r2From->format($format)] ,
                        ['executedAt<=' => $r2To->format($format)],
                    ],
                    [
                        ['executeTime>=' => $r1From->format($format)],
                        ['executeTime<='=> $r1To->format($format)],
                        'scheduledJob.job' => 'Dummy'
                    ]
                ]
            ]
        ];


        return !!$this->getEntityManager()->getRepository('Job')->findOne($selectParams);
    }
public function isCronConfigured()
    {
        $r1From = new \DateTime('-' . $this->checkingCronPeriod);
        $r1To = new \DateTime('+' . $this->checkingCronPeriod);

        $r2From = new \DateTime('- 1 hour');
        $r2To = new \DateTime();

        $format = \Espo\Core\Utils\DateTime::$systemDateTimeFormat;

        $selectParams = [
            'select' => ['id'],
            'leftJoins' => ['scheduledJob'],
            'whereClause' => [
                'OR' => [
                    [
                        ['executedAt>=' => $r2From->format($format)] ,
                        ['executedAt<=' => $r2To->format($format)],
                    ],
                    [
                        ['executeTime>=' => $r1From->format($format)],
                        ['executeTime<='=> $r1To->format($format)],
                        'scheduledJob.job' => 'Dummy'
                    ]
                ]
            ]
        ];


        return !!$this->getEntityManager()->getRepository('Job')->findOne($selectParams);
    }
public function isCronConfigured ( ) { $ r1From = new \ DateTime ( '-' . $ this -> checkingCronPeriod ) ; $ r1To = new \ DateTime ( '+' . $ this -> checkingCronPeriod ) ; $ r2From = new \ DateTime ( '- 1 hour' ) ; $ r2To = new \ DateTime ( ) ; $ format = \ Espo \ Core \ Utils \ DateTime :: $ systemDateTimeFormat ; $ selectParams = [ 'select' => [ 'id' ] , 'leftJoins' => [ 'scheduledJob' ] , 'whereClause' => [ 'OR' => [ [ [ 'executedAt>=' => $ r2From -> format ( $ format ) ] , [ 'executedAt<=' => $ r2To -> format ( $ format ) ] , ] , [ [ 'executeTime>=' => $ r1From -> format ( $ format ) ] , [ 'executeTime<=' => $ r1To -> format ( $ format ) ] , 'scheduledJob.job' => 'Dummy' ] ] ] ] ; return ! ! $ this -> getEntityManager ( ) -> getRepository ( 'Job' ) -> findOne ( $ selectParams ) ; }
Check if crontab is configured properly

@return boolean
Check if crontab is configured properly