public function isDue(Schedulable $scheduler)
    {
        /** @var \Indatus\Dispatcher\Drivers\DateTime\ScheduleInterpreter $interpreter */
        $interpreter = App::make('Indatus\Dispatcher\Drivers\DateTime\ScheduleInterpreter', [$scheduler]);

        /** @var \Illuminate\Contracts\Logging\Log $logger */
        $logger = App::make('Illuminate\Contracts\Logging\Log');

        try {
            return $interpreter->isDue();
        } catch (Exception $e) {
            $logger->error($e);
        }

        return false;
    }
public function isDue(Schedulable $scheduler)
    {
        /** @var \Indatus\Dispatcher\Drivers\DateTime\ScheduleInterpreter $interpreter */
        $interpreter = App::make('Indatus\Dispatcher\Drivers\DateTime\ScheduleInterpreter', [$scheduler]);

        /** @var \Illuminate\Contracts\Logging\Log $logger */
        $logger = App::make('Illuminate\Contracts\Logging\Log');

        try {
            return $interpreter->isDue();
        } catch (Exception $e) {
            $logger->error($e);
        }

        return false;
    }
public function isDue ( Schedulable $ scheduler ) { /** @var \Indatus\Dispatcher\Drivers\DateTime\ScheduleInterpreter $interpreter */ $ interpreter = App :: make ( 'Indatus\Dispatcher\Drivers\DateTime\ScheduleInterpreter' , [ $ scheduler ] ) ; /** @var \Illuminate\Contracts\Logging\Log $logger */ $ logger = App :: make ( 'Illuminate\Contracts\Logging\Log' ) ; try { return $ interpreter -> isDue ( ) ; } catch ( Exception $ e ) { $ logger -> error ( $ e ) ; } return false ; }
Determine if a schedule is due to be run.

@param \Indatus\Dispatcher\Scheduling\Schedulable $scheduler

@return bool
Determine if a schedule is due to be run .