Solved

windows task manager

Posted on 2013-01-18
5
203 Views
Last Modified: 2013-02-05
I have a task the repeats every 15 minutes. But if the script that I am running determines that for the rest of the 12 hour period there will be nothing to do, Can I make some sort of API call and expire the task for today ?   Not delete the task; I want it to start again in the morning running every 15 mins.

Thanks
0
Comment
Question by:sidwelle
  • 3
  • 2
5 Comments
 
LVL 13

Accepted Solution

by:
Gabriel Clifton earned 500 total points
ID: 38794419
Instead of having it "pause" the scheduled task for rest of the day, why don't you have the script run once a day, check for certain conditions and if met run if not pause for x minutes then rerun.
0
 

Author Comment

by:sidwelle
ID: 38794611
That's option B, I was under the impression that Tasks could be altered with an API.
0
 
LVL 13

Expert Comment

by:Gabriel Clifton
ID: 38794900
not sure of anything other net stop schedule
0
 

Author Comment

by:sidwelle
ID: 38795662
I might be leaning toward the first option because I am finding that the schedule even though it is set to run the app for 12 hours after the kickoff time, just continues to run it continuously.  What’s up with that ??
0
 

Author Closing Comment

by:sidwelle
ID: 38857789
Thanks for the help.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

828 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