Developer forum

Forum » Development » Scheduled tasks in the backend

Scheduled tasks in the backend


Reply

I tried to create a Scheduled task on one of hour solutions for the first time.

 

I created a pretty simple function that writes a log file in the site root to see if there was a connection at all.

 

I used your very fine dll search interface to locate the methood io wanted to call and set the time ogf execution about 15 minutes from the setup time.

 

nothing has happened yet.

 

Does the scheduled tasks work?

Do I need to allow an amount of time before the tasks begin to work or what?

 

should the method fail, will it not be logged as executed?

 

kind regards Sune Fengel

 


Replies

 
Reply

Please check out the two FAQs on the Scheduled Tasks module: http://documentation.dynamicweb.dk/Scheduled-Tasks-24681.aspx

 
Reply
Sorensen wrote:

Please check out the two FAQs on the Scheduled Tasks module: http://documentation.dynamicweb.dk/Scheduled-Tasks-24681.aspx

hmmm I tried to compile the CustomModules namespace and the Global class into my dll which holds the Application_Start method which again holds a call to Dynamicweb.ScheduledTask.Thread.Start();.

 

still nothing.

 

anything else I might need to do?

 

- Sune

 
Reply

Does the backend interface of the Scheduled Task display any information about when the task was last run? I've previously experienced that this information is not being registered, if the target method fails.

 
Reply
Sorensen wrote:

Does the backend interface of the Scheduled Task display any information about when the task was last run? I've previously experienced that this information is not being registered, if the target method fails.

No it hasnt registered being run.

I'll try to outcomment everything in that method so it just calls a complete empty method and see if that works.

 

 
Reply
Sorensen wrote:

Does the backend interface of the Scheduled Task display any information about when the task was last run? I've previously experienced that this information is not being registered, if the target method fails.

I Tried outcommenting everything in the method so the scheduled task just calls an empty method.

 

I set it to run 10 minutes later (10:00) and still, nothing has happened.

I noticed in the class view that it couldnt find the custommodules.dll ahich contains the global namespace with the application start.

 

could it be that somehow the custommodules.dll is not registered in the system?

 

- Sune

 
Reply

If you can make the module work with another action type, we'll have a better diagnosis. It's weird that you're not able to see it. Are you sure you uploaded the assembly to the right directory? Is it an online solution that I could check?

 
Reply
Sorensen wrote:

If you can make the module work with another action type, we'll have a better diagnosis. It's weird that you're not able to see it. Are you sure you uploaded the assembly to the right directory? Is it an online solution that I could check?

yes, its at fonqi.com (http://fonqiweb.net.dynamicweb.dk/)

 
Reply

Oh, this is not a custom solution, so that would explain why your custommodules assembly is not displayed.

 
Reply
Sorensen wrote:

Oh, this is not a custom solution, so that would explain why your custommodules assembly is not displayed.

OK that might explain a lot.

Though we requested it to be a custom solution a while back and we have access to the application folder from the ftp.

But I'll create a case in the service desk for this.

 

- Sune

 
Reply

Yeah, you better talk to someone about that:)

 
Reply
Sorensen wrote:

Yeah, you better talk to someone about that:)

OK I contacted servicedesk and it appeared that the url fonqiweb.net.dynamicweb.dk was still pointing to a standard server whereas the domain www.fonqi.com is pointing to a customserver but  when I log onto the fonqi.com/Admin I still cant find the Custommodules.dll in the class view.

could I perhaps get you to check on that?

 

- Sune

 
Reply

I can't find any class view on that solution, however, there is a custommodules.dll on the solution that was September 16th.

 
Reply
Sorensen wrote:

I can't find any class view on that solution, however, there is a custommodules.dll on the solution that was September 16th.

Okay maybe I've been unclear.

When I say that I cant find the CustomModules.dll in your classview I mean I cant see it in the ClassBrowser.aspx page which is called when I  choose what method to execute...

 

I can see all Assemblies in the bin including Dynamicweb.dll + Dynamicweb.Admin.dll

 

I can also see the Reminder.dll which i uploaded and which contains the method I would like to schedule.

 

But the CustomModule assembly that contains the OnApplicationStart event which holds the Application_Start method which again holds a call to Dynamicweb.ScheduledTask.Thread.Start();.

 

so my concern is that somehow the application doesnt know about my Custommodules.dll even though it is in the bin on the server.

 

- Sune

 
Reply

Ok so conclusion must be that Scheduled tasks doesnt work.

 

 
Reply

I just tested on an other solution, and it ignores CustomModules.dll on this on too. There may be a bug here. Could I ask you to report it through helpdesk?

 

You must be logged in to post in the forum