Jump to content


Check out our Community Blogs





- - - - -

PHP Based Job Scheduler

Posted by rhossis, 16 September 2014 · 22678 views

php job scheduler stomp activemq
PHP Based Job Scheduler 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.

Attached Thumbnails

  • Attached Image
  • Attached Image
  • Attached Image
  • Attached Image
  • Attached Image
  • Attached Image


  • 1



This look pretty nice.

Is your code open?

    • 0

Thanks Vaielab :) . The source for scheduler is not open at the moment, i however believe the status should change once we are clear on the design aspects

    • 0

Actually, the design look really good!

    • 0

i really appreciate your feedback the actual bits of it will be in the next post :)

    • 0

I too agree that this looks very good and functionality sounds extremely useful.  I will continue to follow this :)

Well done!

    • 0

Thanks, keep posted there should be more.

    • 0

Recent Entries

Recent Comments

My Picture

1 user(s) viewing

0 members, 1 guests, 0 anonymous users

Categories