Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi umbraco forum I know of the scheduler in umbraco
but how do I set the scheduler to run every day when the time is 2pm and not ever 60 secounds ?
I don't think you can set scheduled tasks at specific times.
You can do something in code which only executes if the time is correct and let the schedule task run every 60 seconds.
or Set the schedule to 86400 seconds and accept it will just run once every 24 hours but based on the app pool start time.
Or.... use a windows scheduled task if you have access to do this which hits the URL at the given time specifically.
Thanks for the reply Carl I was hoping that it wouldn't be this answer Ill get.
I already set the time to 86400 seconds so it only runs once but how would you start the app pool at a certain time and if the site should go down and I would have to restart the server then would the app pool reset as well ? this sounds like a bad idea.
No - relying on the app pool being started at a specific time isn't the way to go.
What is in the page / controller that you want to be hit?
If you can't setup a scheduled task in windows then the best way is to allow your code to be hit every 60 seconds and then check the time when it happens.
The server load will be unnoticable as the task you will do is only run when the criteria is met, otherwise nothing happens.
Post where your code is running (in template, API, Controller?) and i can point you in the right direction.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted