When are scheduled tasks first run? Is it when the application starts up and then as per the interval or is it the first occurrence of the interval after the application starts up?
I need a scheduled task to run only once every 24 hours but at a specific time as it is quite an intensive process that can degrade use of the site whilst it runs so it needs to run out of office hours.
I'm guessing I need to either extend the existing scheduled task system or use another solution that allows more control?
Thanks Ismail, I've done similar by calling a wget style console app but wondered if in v7 I could keep this with the other scheduled tasks but I guess not.
I might take a look at how easily it could be extended as I think it would be a useful feature.
The task I need to run actually calls a web api method on a controller that inherits from UmbracoAuthorizedApiController so I'm not even sure the Umbraco task scheduler can be used regardless of the start date/time issue.
I'm hoping to get some time to look at this further this week but might have to rethink the whole thing.
Scheduled Tasks First Run
When are scheduled tasks first run? Is it when the application starts up and then as per the interval or is it the first occurrence of the interval after the application starts up?
I need a scheduled task to run only once every 24 hours but at a specific time as it is quite an intensive process that can degrade use of the site whilst it runs so it needs to run out of office hours.
I'm guessing I need to either extend the existing scheduled task system or use another solution that allows more control?
Thanks, Simon
Simon,
In the past I have used console app and run it using windows scheduler as I know it will run on time.
Regards
Ismail
Thanks Ismail, I've done similar by calling a wget style console app but wondered if in v7 I could keep this with the other scheduled tasks but I guess not.
I might take a look at how easily it could be extended as I think it would be a useful feature.
Cheers, Simon
The task I need to run actually calls a web api method on a controller that inherits from
UmbracoAuthorizedApiController
so I'm not even sure the Umbraco task scheduler can be used regardless of the start date/time issue.I'm hoping to get some time to look at this further this week but might have to rethink the whole thing.
is working on a reply...