How to run a task every minute
Hi,
I have in my local version of cq5 a thread that runs every minute, checks a queue and executes a task. It works fine.
I need now to export it in my production environment.
The production has a slave and a master therefore i need to execute my code only in the master.
@Properties({ @Property(name="scheduler.runOn", value="LEADER"), @Property(name="scheduler.expression", value="0 * * * * ?"), @Property(name="scheduler.concurrent",boolValue=false) })My bundle is in production and with the system console i can see the process.
The first instruction of this process is a print to the error.log but if i inspect the log of the master and the slave i can't see nothing.
This is my logger:
protected final Logger log = LoggerFactory.getLogger(this.getClass());
Could it be that the log is redirected to another file?
I think that this process isn't started. How can i verify it?
Need i a procedure to refresh the quartz scheduler?
Thanks