protected function importScheduleFile()
    {
        $scheduleFile = Yii::getAlias($this->scheduleFile);

        if (!file_exists($scheduleFile)) {
            throw new InvalidConfigException("Can not load schedule file {$this->scheduleFile}");
        }

        $schedule = $this->schedule;
        call_user_func(function () use ($schedule, $scheduleFile) {
            include $scheduleFile;
        });
    }