[Yanel-dev] scheduler-jobs.xml
Michael Wechner
michael.wechner at wyona.com
Tue Oct 4 09:51:30 EDT 2016
Hi Balz
No, I don't think that Yanel currently supports the cron schedule
format, only something like for example
<trigger startDate="2014.04.30T17:39:00">
<repeat count="3" interval="10000" target-environment="dev"/>
<repeat count="REPEAT_INDEFINITELY" interval="86400000"/> <!--
INFO: One day in milliseconds -->
</trigger>
but I think it would be quite straight forward to enhance
src/impl/java/org/wyona/yanel/impl/scheduler/QuartzSchedulerUtil.java
which is currently processing the startDate attribute.
It would be great if you could provide a pull request :-)
Thanks
Michael
Am 04.10.16 um 10:44 schrieb basZero:
> Hi,
>
> cool would be something like this in the scheduler-jobs.xml :
>
> <job class="com.myjobs.blabla" name="My Job A">
> <trigger cronSchedule="STRING"> <!-- e.g. "0 0 15 5 * ?" -->
> </trigger>
> </job>
> Cheers, Balz
>
> On Tue, Oct 4, 2016 at 10:38 AM, basZero <baszero at gmail.com
> <mailto:baszero at gmail.com>> wrote:
>
> Hi,
>
> Yanel runs on Quartz 2.1.5, which is great.
> However I didnt' find out how to use the advanced triggering
> features via the scheduler.jobs.xml:
>
> trigger = newTrigger()
> .withIdentity("trigger3", "group1")
> .startNow()
> .withSchedule(cronSchedule("0 0 15 5 * ?")) // fire on the 5th
> day of every month at 15:00
> .build();
>
> Does Yanel support the Cron-Schedule notation in any way? If so,
> where and how do I have to configure it?
>
> Source: http://www.quartz-scheduler.org/documentation/quartz-2.x/cookbook/MonthlyTrigger.html
> <http://www.quartz-scheduler.org/documentation/quartz-2.x/cookbook/MonthlyTrigger.html>
>
> Thanks
> Balz
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mx2.wyona.com/pipermail/yanel-development/attachments/20161004/cd6d1403/attachment.html>
More information about the Yanel-development
mailing list