solved Is the cron server REQUIRED?

alt=
DannyA
@dannya
8 years ago
584 posts
Do queue clients still get jobs if the server isn't registered in the cron server?
updated by @dannya: 11/25/16 02:13:22PM
brian
@brian
8 years ago
10,148 posts
DannyA:
Do queue clients still get jobs if the server isn't registered in the cron server?

It depends - if you want to NOT use the cron server, you will need to come up with a suitable replacement for what it does. The whole purpose of the cron server is to send "ping" requests to your backend queue worker servers that would not otherwise get any "hits" on the server. Since JR's queue workers are web processes, we need some way to kick off the queue processes on a back end server. This is what the cron server does. It pings the back end queue servers every X (configurable) seconds and says "wake up and check for new queue entries that you need to work".

So you could replicate that using regular cron, but the cron server works really well for that purpose so I would recommend using it.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
8 years ago
584 posts
Thanks. That's helpful. I always thought the workers checked for entries on their own every x seconds. Didn't realize they needed to be woken up.

Tags