on 2018 Jul 27 12:40 PM
There are a lot of possible settings for triggering cronjobs. Is there a documentation available explaining the meaning and usage of these settings? May be some useful samples?
Thanks a lot, Heiko
Request clarification before answering.
Hi Heiko old buddy :-) look here https://www.freeformatter.com/cron-expression-generator-quartz.html or http://www.cronmaker.com/ You can generate an expression as you like or convert one into a semantical meaning
So long Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In case anyone stumbles upon this asking the same question(s): there is a comprehensive documentation available here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok. So I should narrow my question: Is there a documentation available explaining the meaning and usage of cronExpression? May be some useful samples? Why "0 16 * ?" ?? And what ist with: - cronjob should run every xx minutes. - cronjob should run twice a day, but only at work days - ..
It would be good, not to have 1 or 2 examples, but a comprehensive documentation concerning this feature.
Thanks a a lot, Heiko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have access to help.hybris.com? It is described here: https://help.hybris.com/6.7.0/hcd/8b9d40fa86691014b471f5bf5a9715dd.html
There are only 2 important attributes:
active: Should the trigger be enabled or not?
cronExpression: Schedule (configured as a cron expression) of when the job should run
Example for CronJob:
INSERT_UPDATE Trigger;cronjob(code)[unique=true];active;cronExpression
;sampleCronJob;true;0 * 16 * * ?
Instead of cronjob, you could also specify job, like:
INSERT_UPDATE Trigger;job(code)[unique=true];active;cronExpression
;sampleJob;true;0 * 16 * * ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.