In this task, we will create a simple job consumption script. We will use cron to run the script every so often. When it runs, it will query for jobs that need to run in this time frame, queue them up, execute them, and record the results. We want the jobs to run within the context of Yii, because we want to:
To do this, our job processing script will be written as a Yii command, like the RBAC command we used in Project 4, Level Up! Permission Levels.
utils. Right-click on ch7 | Source Files | protected, select New | Folder, and enter
utils. We ...