You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Prashant Punekar <Pr...@mindtree.com> on 2010/07/07 19:31:19 UTC
ofbiz job scheduler !
Hi All,
We have two ofbiz server on load balancer and two mysql database in cluster mode.
We have few scheduled jobs, where the information gets stored in job_sandbox table.
As both the app servers have the same definition for thread-pool tag in serviceengine.xml.
<thread-pool send-to-pool="pool"...........................>
Doubt :
Which ofbiz server will kick of the scheduled job ?
Is Ofbiz smart enough to be aware that one instance has already kicked off the scheduled job and the other instance doesn't need to do the same ?
Or both the ofbiz servers will kick of the scheduled job at the same time ?
Regards,
Prashant
________________________________
http://www.mindtree.com/email/disclaimer.html
Re: ofbiz job scheduler !
Posted by Scott Gray <sc...@hotwaxmedia.com>.
Jobs get marked as running in the database before they are actually executed so another instance won't pick up an already running job. The code in the JobManager isn't really that complex and if you're running multiple instances it might be a good idea to get familiar with how it works.
Regards
Scott
HotWax Media
http://www.hotwaxmedia.com
On 8/07/2010, at 5:31 AM, Prashant Punekar wrote:
> Hi All,
>
> We have two ofbiz server on load balancer and two mysql database in cluster mode.
> We have few scheduled jobs, where the information gets stored in job_sandbox table.
> As both the app servers have the same definition for thread-pool tag in serviceengine.xml.
>
> <thread-pool send-to-pool="pool"...........................>
>
> Doubt :
>
> Which ofbiz server will kick of the scheduled job ?
> Is Ofbiz smart enough to be aware that one instance has already kicked off the scheduled job and the other instance doesn't need to do the same ?
> Or both the ofbiz servers will kick of the scheduled job at the same time ?
>
> Regards,
> Prashant
>
>
> ________________________________
> http://www.mindtree.com/email/disclaimer.html