Scheduler Timing

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

Scheduler Timing

#1

Postby Segi » Wed May 20, 2015 7:17 pm

I have been using the scheduler to automatically run an eBase script which generates and emails reports.

I have noticed that scheduled tasks do run but not exactly at the time that they are scheduled at.

For example, I just did a test where I had a task scheduled to run today at 11:01 AM. The scheduler logs show an end date and time of 5/20/15 11:09.27.

8 minutes difference is not so crucial but I was wondering if the scheduler exists in eBase as a separate process that checks for any scheduled tasks that need to be run on a regular interval.

Is there a way to force the schedule to run at the exact time that I specify ?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Thu May 21, 2015 10:00 am

The scheduler works like this: it wakes up at fixed intervals (the default is every 10 mins) and then checks for tasks that need to be run. So with the default setting, tasks will be between 0 - 10 mins late. This wake-up period is specified with property Ufs.schedulerWakeupInterval in UFSSetup.properties - requires a server restart to take effect. You probably don't want to set this parameter too small as it queries the database each time it wakes up. A value of 60 (1 min) would be fine.
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#3

Postby Segi » Thu May 21, 2015 11:28 pm

ok thanks that perfectly explains why the schedule is executing when it is.
0 x


Who is online

Users browsing this forum: No registered users and 17 guests