PHP Cron 管理器/调度程序
我们从事的项目有多个 cron 作业。一个每 30 分钟运行一次,一个每午夜运行一次,一个在下午 2:00 运行,等等。现在不是每次都设置单独的 cron 作业,而是有某种 PHP cron 管理器类,我可以安排它运行说每 1 分钟并使用该管理器我可以在特定时间或间隔触发其他 crons/脚本。我们正在计划开发这样的一个,但在开始之前我一直在寻找现有的选项,但找不到任何选项。有什么建议吗?
谢谢
We work on projects in which we have several cron jobs. One that run every 30 mins , one that runs every midnight, one that runs at 2:00 PM etc. Now instead of setting individual cron jobs every time, is there some sort of PHP cron manager class, which I can schedule to run say every 1 minute and using that manager I can fire other crons/scripts at specific time or intervals. We are planning of developing one like this, but I was looking for existing options before we start, but couldn't find any. Any suggestions?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试 PHP Cron 守护进程。它比我看过的许多其他产品更好,因为它使用分叉。如果没有分叉(或某种其他类型的流程管理),您的 30 分钟脚本将不得不等待每日脚本完成才能开始...
编辑:链接不再可用
Try PHP Cron Daemon. It is better than a lot of others I have looked at because it uses forking. Without forking (or some other kind of process management), your 30 mins scripts would have to sit waiting for your daily scripts to complete before starting...
Edit: link no longer available