asp.net - Best way to run scheduled tasks -


Today we have created a console application to run scheduled tasks of our ASP.NET website. But I think this approach is a small problem and it is difficult to maintain.

Update:

Examples of tasks:

  • Send
  • Removing old objects from database
  • Receive stats from Google AdWords and fill out a table in the database.

    Website for all my work (which needs to be set) Is placed inside and a special page is called. I then wrote a simple Windows service that tells this page so fast that it gives a value after running the page, if I know there is more work to do, then I run the page again, otherwise I I run in a little while It has worked really well for me and keeps all my work logic with web code. Before writing ordinary Windows services, I used to call Windows Scheduler every x minute.

    Another convenient way to run it is to use a monitoring service such as Point your http check to the page that runs your service code. After results of the results on the page, pingadam can be used to send a warning message when something is not right.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -