November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
A couple of things:
When the job runs automaticly you do not have access to httpcontext and that means that some of these ContentReference.... does not work, but I think the rootpage always works
The job runs under a special user that might not have the access to get children, you can run it with elaborated security if you need
Hi Henrik. Thanks for your reply. I changed my approach in the end, creating a plugin to hold the settings after seeing this article https://www.epinova.no/en/blog/configuration-options-for-episerver-sites/ .
For any other developers who run into similar issues, if you are using IIS, make sure to also check the Application Pool advanced settings for your site. I had to change the idle-timeout to 0 (default was 20 mins) and change StartMode to AlwaysRunning
I have 2 custom scheduled jobs that run on their schedules when I am logged in, however they stop running when I log out. How can I get them to run all the time, regardless of if I am logged in or not? The test site I am running the scheduled jobs on is password protected, and requires logging in to access it. Could this be the reason the scheduled job doesnt run when I log off?
Any help would be much appreciated. This is my first time writing scheduled jobs.
The EmailerJob is scheduled to run every 15 minutes in the admin panel, and it does this successfully when logged in.
Code: