Run multiple instances of a scheduled task

J

Jim

I have a scheduled task that I set to run every minute. This task does
a check in a database to see if there is any work for it to do. If
there is work to be done, it performs the work. The work to be done
usually takes more than 1 minute. When a minute passes, the scheduler
must realize that the last task is still running so it doesn't start
another instance of the job. At that point, I would like the scheduler
to ignore that the last instance of the job is already running and to
kick off again. Is this possible?

Thanks!
 
J

Jim

Someone on another board helped me. This is what worked ...

I created a .bat file with the following:

@echo off
start yourexe.exe

I then had the windows scheduled job call the .bat instead of my .exe.
 

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

Top