Scheduled methods and errorhandler

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

Scheduled methods and errorhandler

Postby martinh » Fri Jul 23, 2010 10:56 am

Hi,

When running a method using the scheduler in a batch process, it can happen that this method gets into the error handler.
The problem is that the batch process stops running instead of only this method that was scheduled.

Is there a way that the batch process still continues to run, but that only the scheduled method stops running.

Because I have a batch processor that schedules 20 methods and if 1 method fails, then all other 19 methods will not be executed anymore.
Putting each method in a separate batch processor is not a solution.

Is there a way to have a work-around for this problem?
And if not, does Servoy see a possibility to implement this in a future release? Or is it technically impossible?

Martin
Martin
------------------------------------------------
Servoy Developer
Version 5.2.10/5.2.13
Java version 1.6 update 31
Database SQL Server 2008 R2
martinh
 
Posts: 857
Joined: Wed May 09, 2007 5:34 pm
Location: Belgium

Re: Scheduled methods and errorhandler

Postby Harjo » Fri Jul 23, 2010 11:39 am

Set every method in a try/catch. If a method fails it will go in the catch, but the other methods will continue
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Scheduled methods and errorhandler

Postby jcompagner » Fri Jul 23, 2010 12:59 pm

if you really add 20 methods to the scheduler (to run on various times)
then the scheduler should definitely not stop executing nr 2 if nr 1 that is executed right before it has an error!

If you have such a thing, please make a small sample and attach it to a case.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 6 guests