PHP Based Job Scheduler
Posted by rhossis, 16 September 2014 · 34985 views
php job scheduler stomp activemq
The job scheduler is coming up, but still hampered by performance issues. However, majority of the functionality is working and should be put to use with some simple tasks this week. The objective is not to replace the crontab, because we must have at least one task running on cron every minute, that is the job scheduler itself. The actual scheduled tasks are spawned via PHP forked jobs. The multiprocess module works on both windows and linux without any configuration changes. Task control and queuing is achieved via ActiveMQ. I have read a bit that ZeroMQ seems better designed to facilitate this and even supports a protocol for it, but I am not too familiar wiht it. My main issue is I am getting very slow response with ActiveMQ access via the PHPStomp library, with some tasks spilling over to the next minute. However, via using the message queue for IPC, the tasks are able to know that there is another instance running and thus if there is a overlap the overlapping task will resolve itself without processing any data. Have just included some screenshots below and shall indicate design aspects in next post.