Scheduler: one scheduler per solution?

Hi everybody,

I’m learning how to set-up scheduled tasks on Servoy. I have read the presentation and looked at the code.
We don’t want to use a separate database for the scheduler jobs. So we will adapt it to work on a jobs table which will be in each solutions database we use.

So here is my question: will the following code remove all jobs from all the solutions on the server or jobs only created in the current solution?

var vJobsArray = plugins.scheduler.getCurrentJobNames()
for(var i=0 ; i< vJobsArray.length ; i++)
{
	plugins.scheduler.removeJob(vJobsArray[i])
}

Thanks

Hi,

Foobrother:
So here is my question: will the following code remove all jobs from all the solutions on the server or jobs only created in the current solution?

Only the ones created in your current session. I.e. your current solution.

ROCLASI:
Hi,
Only the ones created in your current session. I.e. your current solution.

Ok, that’s what I wanted to read :lol:

Thanks :D