Question about cron setting mo-fr

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Question about cron setting mo-fr

Postby LXS » Mon Mar 25, 2019 10:28 am

Hi,

i'm using the scheduler plugin in Servoy 7.4 to add a cronjob which should run monday - friday at 6:30 pm and doing it this way:

Code: Select all
plugins.scheduler.addCronJob('title', '0 30 18 ? * 1-5', method, startDate, endDate, args);


The job runs sunday - thursday.

To check the cron setting i use the follwing website:

https://cronexpressiondescriptor.azurew ... &locale=en

Here the description for this cron setting is:

Code: Select all
At 06:30 PM, Monday through Friday


So what's going wrong?

Thank you!
Alex
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 151
Joined: Thu Mar 01, 2007 12:00 am

Re: Question about cron setting mo-fr

Postby Joas » Mon Mar 25, 2019 1:41 pm

What happens if you try this?
Code: Select all
0 30 18 ? * MON-FRI
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: Question about cron setting mo-fr

Postby LXS » Mon Mar 25, 2019 4:22 pm

Thank you, i'll try it!
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 151
Joined: Thu Mar 01, 2007 12:00 am

Re: Question about cron setting mo-fr

Postby LXS » Mon Apr 08, 2019 11:53 am

Hi,

i want to give a short feedback.

The setting with MON-FRI works as expected!
So i'll use this way an not 1-5

Thank you!
Alex
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 151
Joined: Thu Mar 01, 2007 12:00 am


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 7 guests

cron