Run multiple instances of a scheduled task

  • Thread starter Thread starter Jim
  • Start date Start date
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!
 
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.
 
Back
Top