You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Pierre Smits <pi...@apache.org> on 2019/04/21 10:24:07 UTC
Scheduled Service & recurrenceInfo & recurrenceRule
Hi All,
As part of an improvement regarding the BI component I created a service
that I want to be executed daily at a certain hour. For this I created both
RecurrenceInfo and a RecurrenceRule, like
<RecurrenceRule recurrenceRuleId="DailyAt02" frequency="DAILY"
intervalNumber="1"
byDayList="SU,MO,TU,WE,TH,FR,SA"
byHourList="2,9,10,11,12,13,14,15,16,17,18,19,20,21" countNumber="-1"
/>
<RecurrenceInfo recurrenceInfoId="DailyAt02" startDateTime="2008-01-01
00:00:00.000" recurrenceRuleId="DailyAt02"/>
For testing purposes I added ,9,10,11,12,13,14,15,16,17,18,19,20,21 to the
byHourList field. And I have set the byDayList field.
It seems to me that the job manager doesn't work with these kind of
parameters to (re)schedule jobs . In the demo data set there is another
recurrenceRule (see [1]) but that doesn't seem to be in use.
Has anybody experience with using this kind of rescheduling of jobs? Is my
definition of the rule correct?
[1]
https://localhost:8443/webtools/control/ViewGeneric?entityName=RecurrenceRule&recurrenceRuleId=205
Best regards,
Pierre Smits
*Apache Trafodion <https://trafodion.apache.org>, Vice President*
*Apache Directory <https://directory.apache.org>, PMC Member*
Apache Incubator <https://incubator.apache.org>, committer
*Apache OFBiz <https://ofbiz.apache.org>, contributor (without privileges)
since 2008*
Apache Steve <https://steve.apache.org>, committer
Re: Scheduled Service & recurrenceInfo & recurrenceRule
Posted by Nicolas Malin <ni...@nereide.fr>.
Do you check to revert your rule ?
Run each hours except from 22-0 and 0-9 ?
Nicolas
On 21/04/2019 12:24, Pierre Smits wrote:
> Hi All,
>
> As part of an improvement regarding the BI component I created a service
> that I want to be executed daily at a certain hour. For this I created both
> RecurrenceInfo and a RecurrenceRule, like
>
> <RecurrenceRule recurrenceRuleId="DailyAt02" frequency="DAILY"
> intervalNumber="1"
>
> byDayList="SU,MO,TU,WE,TH,FR,SA"
>
> byHourList="2,9,10,11,12,13,14,15,16,17,18,19,20,21" countNumber="-1"
>
> />
>
> <RecurrenceInfo recurrenceInfoId="DailyAt02" startDateTime="2008-01-01
> 00:00:00.000" recurrenceRuleId="DailyAt02"/>
>
>
>
> For testing purposes I added ,9,10,11,12,13,14,15,16,17,18,19,20,21 to the
> byHourList field. And I have set the byDayList field.
>
> It seems to me that the job manager doesn't work with these kind of
> parameters to (re)schedule jobs . In the demo data set there is another
> recurrenceRule (see [1]) but that doesn't seem to be in use.
>
> Has anybody experience with using this kind of rescheduling of jobs? Is my
> definition of the rule correct?
>
> [1]
> https://localhost:8443/webtools/control/ViewGeneric?entityName=RecurrenceRule&recurrenceRuleId=205
>
> Best regards,
>
> Pierre Smits
>
> *Apache Trafodion <https://trafodion.apache.org>, Vice President*
> *Apache Directory <https://directory.apache.org>, PMC Member*
> Apache Incubator <https://incubator.apache.org>, committer
> *Apache OFBiz <https://ofbiz.apache.org>, contributor (without privileges)
> since 2008*
> Apache Steve <https://steve.apache.org>, committer
>