Developer forum

Forum » CMS - Standard features » Issue with creating scheduled tasks

Issue with creating scheduled tasks

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

Quite often when I am in the backend and try to modify a scheduled task I get an error message in an info bar saying "Failed to handle Windows scheduled task". To resolve the issue I can click Impersonate and then OK to choose the Backend credentials.

Why is this? Why doesn't it take my backend credentials by default? Is this a bug or by design?

Imar


Replies

 
Nicolai Pedersen
Reply

In which hosting Environment are you?

These features (version change, hostheaders, schedules) fiddles with setup on the server, and DW has built in credentials for Hostnordic setup. When not on Hostnordic servers, you need the impersonation...

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

It's our own (at SherWeb). I can understand why this is needed when setting up the task in the Windows Task Scheduler, but in this case we're just updating Dynamicweb data (i.e. the task in ScheduledTasks). Simply clicking Impersonate and then OK solves the issue. Wouldn't it make sense to differentiate between the code that deals with the server and the code that deals with the Dynamicweb data?

Imar

 
Dmitriy Benyuk
Reply

Hi Imar,
The current flow is : when editing a task – if the amount of active tasks was changed, then this Windows Scheduler code is executed(to ensure that windows scheduler is running or needs to be stopped(if no active tasks is present after editing)). So if we hide this message/exception details to the UI user, he will not know if something is not fine with the tasks(so they may not run).
Regards, Dmitrij

 

You must be logged in to post in the forum