Solved

Win 2000 Server Scheduler

Posted on 2003-10-27
6
148 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now