Message Boards

Quartz schedular is not triggering, after restarting the server in liferay

Ganesh Puli, modified 3 Years ago.

Quartz schedular is not triggering, after restarting the server in liferay

New Member Posts: 19 Join Date: 2/27/18 Recent Posts

We deployed a module which is having the class related to the quartz schedular , to run the cron jobs

the jobs running fine after deploying the module, but once after restarting the server , the quartz jobs are not triggering

can you please help me out, how can we work on this issue

here the thing is even after restarting the server also the quart schedular should work properly without redeploying the module which is having the quartz job running logic

 

 

thanks & Ragards,

Ganesh P

 

thumbnail
Olaf Kock, modified 3 Years ago.

RE: Quartz schedular is not triggering, after restarting the server in lif

Liferay Legend Posts: 6396 Join Date: 9/23/08 Recent Posts

Please give us some more steps to reproduce, like (but not limited to):

  • exact version?
  • reproducible on the latest version?
  • What do you do to create the scheduled jobs?
Ganesh Puli, modified 3 Years ago.

RE: RE: Quartz schedular is not triggering, after restarting the server in

New Member Posts: 19 Join Date: 2/27/18 Recent Posts

exact version : Liferay 7.0.1 GA2

reproducible on the latest version : not having idea

to create the scheduled jobs ; we used the below link as a reference

https://ignek.com/blog/scheduler-in-liferay-7-dxp

@Override

protected void doReceive(Message message) throws Exception {

    log.info("Scheduled task executed...");

// here we added my code to which should run when shedular triggered based on cron-expression 

}

the schedular is running fine

but once if we restart the server, shedular is not triggering

until redeploying the module(in which we wrote the schedular code) agin