I made dnn scheduler and set to run it on every 1 min. It works when I do something on site. But I need to run some actions when I am not on the site. For example insert record to database with currenct time. Is this possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Host Settings, use Scheduler Mode = Timer Method
This will make the scheduler run in a separate thread that is not triggered by page requests.
If the scheduler runs in the timer method, it won’t have access to the current
HttpContext.You will also have to make sure that DNN is kept alive, and IIS doesn’t shut down the application due to inactivity. Setting the application pool idle timeout appropriately, and pinging the
/Keepalive.aspxshould take care of this. Nevertheless, using the DNN scheduler for critical tasks is not a good idea.See Also:
Explained