Multiples Scheduler

Sep 25, 2012 at 7:27 PM

Hi John,

 

I cannot make 2 scheduler work, I have created one scheduler to run every minute in my global.asax (App Start)

Dim SondaItauShopline = New Schedule().AtSeconds(0).WithLocalTime().WithName("SondaItauShopline").Execute(Of  SondaItauShopline)()       

and start:

SchedulerRuntime.Start(SondaItauShopline)

Then I created another one to run every 5 minutes and 30 secs.

Dim SondaNFSe = New Schedule().AtMinutes(0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55).AtSeconds(30).WithLocalTime().WithName("SondaNFSe").Execute(Of SondaNFe)()       

and start:

SchedulerRuntime.Start(SondaNFSe)

 

Both classes are Implemented the ITask but just one it´s fireing. If I change the order of my declarations and "Starts" just the second job it´s working, it´s a bug?

 

Coordinator
Sep 26, 2012 at 10:26 PM

Please clarify. When you list the tasks in the order above, which one works? When you switch the order, which one works? It it always the same one? If you comment out the working one, does the not-working one ever work?