Solved

Win 2000 Server Scheduler

Posted on 2003-10-27
6
163 Views
Last Modified: 2010-04-14
Win 2000 Server Scheduler

What happens if a reoccurring scheduled task begins and the previous task hadn’t completed?

I have a program that I run every 5 minutes (it sends updates on the database via XML to another server/HTTP). My question is what happens if I have more data then can be sent within 5 minutes. The program was written in VB6.

Does the schedule know the other program is running and not start a new copy of the program?

Or does it start running another version of the program (so two of the same programs are running at the same time).

Thanks - Tom
0
Comment
Question by:tomhoran
  • 2
6 Comments
 
LVL 4

Accepted Solution

by:
boxcar7 earned 50 total points
ID: 9630916
It will just create a new instance of the program.

I have an access database that does something similar.  What I have done is write a vbs script that looks for the Access lock file file.  If it doesn't find it, it runs the Access database macro.

I would think you could do something similar.  Have your VB6 program put in a registry tag or have it create a temporary file to indicate it's status.  If you don't want to change the source, have the schedule a vbs that takes care of the task management and launching your program as necessary.

I hope this helps...

0
 

Author Comment

by:tomhoran
ID: 9631121
boxcar,

Thanks for the idea. I figured it out. I'm using App.PrevInstance. This si the code i used, so the program just exits if its currently executing

If App.PrevInstance Then
     Exit Sub
End If
0
 

Author Comment

by:tomhoran
ID: 10044119
i'd like to split the point 50 for them and 50 for me since i figured out the answer myself.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question