473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to check status of scheduled job

das
Hi all,
I have 2 jobs running windows apps (C#) scheduled on windows
scheduler. There is a dependency with this, the second job cannot start
until the first job finishes running.

Both the jobs run the same app but with different parameters. Please
give me some ideas on how to do this, whether there is something that I
can check from within my code to see if the first one ended...

FYI: I have a very tight window, so I cannot have whatever times I want
to run the second job and ususally its hard to predict the time it
takes for the first job to finish.

thanks much.

May 10 '06 #1
3 3404
Why not just create a wrapper app which will execute the first job, and
then execute the second job when the first one is done? Then, schedule that
app to run.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"das" <Ad*******@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
Hi all,
I have 2 jobs running windows apps (C#) scheduled on windows
scheduler. There is a dependency with this, the second job cannot start
until the first job finishes running.

Both the jobs run the same app but with different parameters. Please
give me some ideas on how to do this, whether there is something that I
can check from within my code to see if the first one ended...

FYI: I have a very tight window, so I cannot have whatever times I want
to run the second job and ususally its hard to predict the time it
takes for the first job to finish.

thanks much.

May 10 '06 #2
das
Yes that is an approach but the issue is to have some control on the
times:
say 1st job is set to run at 1pm
and the requirement is that the 2nd job must not run before 2pm

Let me know, thanks

May 10 '06 #3
There are too choices here ... you could either write a wrapper that
contained the logic (i.e. if 1st job done and < 2pm wait until 2pm) or you
could go through and just have the second job scheduled for 2pm and make the
second job block until the first job is done (either through a mutex or by
checking the current running processes etc).

Cheers,

Greg Young
"das" <Ad*******@gmail.com> wrote in message
news:11*********************@e56g2000cwe.googlegro ups.com...
Yes that is an approach but the issue is to have some control on the
times:
say 1st job is set to run at 1pm
and the requirement is that the 2nd job must not run before 2pm

Let me know, thanks

May 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: John Roth | last post by:
PEP 263 is marked finished in the PEP index, however I haven't seen the specified Phase 2 in the list of changes for 2.4 which is when I expected it. Did phase 2 get cancelled, or is it just not...
1
by: Richard A. DeVenezia | last post by:
A page has a long running computation loop. While in the loop I want to update a status object so I know how things are going in the computation. This is what I have, but it doesn't seem to...
6
by: John Bowman | last post by:
Hi, I have a C# app that needs to launch the "Add Scheduled Tasks" wizard found in the control panel "Scheduled Tasks" applet. I realize that this "applet" really just opens the tasks folder,...
1
by: DaveF | last post by:
Is there a way to be able to check a url link to see if it is active or not? Example. I put urls to images in an Iframe on my site. If they change the url, It gives me an image not found error. I...
3
by: John Williams | last post by:
VB .Net 2003, .Net Framework 1.1, Windows XP Pro SP1 I've written a console application which I run as a scheduled task. How do I return an exit status value (or string) from the application so...
5
by: Notgiven | last post by:
You want to check scheduling conflicts and you have a record like: appointments(table): apptID beginningDate endingDate beginningTime endingTime It's easy enough to check if a time is...
4
by: Noozer | last post by:
I know ASP isn't the best way to do this, but is it possible??? I've written an application in ASP that manipulates an MS SQL database. We'd like to have our application automatically backup the...
5
by: futileissue | last post by:
Beginner, so please bare with me. I'm not sure what to call what it is I'm looking for. If I have an object class, let's call it "Creature": class Creature: def __init__(self, status):...
1
by: eclipse93081 | last post by:
I need a way to sum check boxes in Access. On the database interface I have 3 boxes you can check; "Scheduled/Went On", "Scheduled/Did Not Go On", and "Not Scheduled". I have the boxes set up as...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.