asp.net - Best way to run scheduled tasks -


today have built console application running scheduled tasks our asp.net website. think approach bit error prone , difficult maintain. how execute scheduled task (in windows/iis/asp.net environment)

update:

examples of tasks:

  • sending email email-queue in database
  • removing outdated objects database
  • retrieving stats google adwords , fill table in database.

all of tasks (which need scheduled) website kept within website , called special page. wrote simple windows service calls page every often. once page runs returns value. if know there more work done, run page again, right away, otherwise run in little while. has worked me , keeps task logic web code. before writing simple windows service, used windows scheduler call page every x minutes.

another convenient way run use monitoring service pingdom. point http check page runs service code. have page return results can used trigger pingdom send alert messages when isn't right.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -