src/models/Scheduler.php
public function pushQueue()
    {
        $delay = $this->schedule_timestamp - time();

        if ($delay < 1) {
            $delay = 0;
        }

        Yii::$app->adminqueue->delay($delay)->push(new ScheduleJob(['schedulerId' => $this->id]));
    }
public function pushQueue()
    {
        $delay = $this->schedule_timestamp - time();

        if ($delay < 1) {
            $delay = 0;
        }

        Yii::$app->adminqueue->delay($delay)->push(new ScheduleJob(['schedulerId' => $this->id]));
    }
public function pushQueue ( ) { $ delay = $ this -> schedule_timestamp - time ( ) ; if ( $ delay < 1 ) { $ delay = 0 ; } Yii :: $ app -> adminqueue -> delay ( $ delay ) -> push ( new ScheduleJob ( [ 'schedulerId' => $ this -> id ] ) ) ; }
Push the given scheduler model into the queue.

@return void
Push the given scheduler model into the queue .