I'm currently trying to create a good scheduler system as an interface for setting up and editing cron jobs on my system. My system is built using Zend framework 1.11.11 on a Linux server.
I have two main problems that I want to suggest:
Problem 1: Configuring the application itself
I have 2 ways to run a cron job:
The first way is to create a folder scriptsand create a shared boot file in it, where I will upload only the resources that I need. Then for each task I will create a separate script and in each script I will include a bootstrap file. Finally, I will add the cron task to the crontab file for each of these scenarios, and the task will look like ***** php /path/to/scripts/folder/cronScript_1.php.
scripts
***** php /path/to/scripts/folder/cronScript_1.php
Secondly, consider cron work as a normal request (without a special bootstrap). Add the cron task to the crontab file for each of these scripts, and the task will look like ***** curl http://www.mydomain.com/module/controller/action.
***** curl http://www.mydomain.com/module/controller/action
Problem 2: Application Interface
Adding a cron job can also be done in two ways:
For each task there will be an entry in the crontab file. when I want to add a new task, I have to do it through cPanel or any other crontab editing tools (which may not be available).
( ). cron crontab, . , , ( ).
, ? , ?
Quartz . , , ?
.
, 1, 2, , script. , 1 cron, /etc/crontab , . , script , script , . (.. , , , )
Gearman (http://gearman.org/). cron- , . , / . . , " ", Gearman .
cPanel, Plesk .., , , crontab . , , "" . crontab , , . , , SSH . , , , crontab .
2: 1 2. . . , , . , , (, ) .
, root, crontab, . , " crontab", , - crontab.
, cron one script script. 1 cron. , , , script , . , .