How to run a Background Job ?

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 .
 
M

Michael D. Ober

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.
 
E

Eliyahu Goldin

Just to clarify that in this case you would write either windows or console
application. You can also use your database job scheduling facilities.
 
F

fallenidol

you are probably best writing a windows service application. these are
specifically designed to run "in the background" without any user
interaction
 
H

Hans Kesting

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
 
E

Edwin Knoppert

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top