How to run a Background Job ?

  • Thread starter Thread starter vivekian
  • Start date Start date
V

vivekian

Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .
 
Write your application and then use the Task Schedular in Windows to execute
it every day at the desired time. Given this app, I would choose early
morning hours so the reminder is in their inbox when they arrive at work.

Mike Ober.
 
Just to clarify that in this case you would write either windows or console
application. You can also use your database job scheduling facilities.
 
you are probably best writing a windows service application. these are
specifically designed to run "in the background" without any user
interaction
 
you are probably best writing a windows service application. these are
specifically designed to run "in the background" without any user interaction

Depends. If that process should run just once a day, a console
application that is started by "Scheduled Tasks" doesn't take up
resources the rest of the day.
If it should run (almost) continously, then you are right.

Hans Kesting
 
We do the same.
Task scheduler calling a simple app which uses the URLdownloadToFile() win32
api on the web app.
Which invokes a specific batch.
I append the result, which is plain text, to my logfile.
(It calls a generic handler/ashx)

Maybe you'll have luck with window's Wait.exe or similar.
There was an issue the task scheduler could not execute my web app, i tried
explorer but failed, therefore my simple win32 app.
 
Back
Top