• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

windows task manager

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
sidwelle
Asked:
sidwelle
  • 3
  • 2
1 Solution
 
Gabriel CliftonCommented:
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
 
sidwelleAuthor Commented:
That's option B, I was under the impression that Tasks could be altered with an API.
0
 
Gabriel CliftonCommented:
not sure of anything other net stop schedule
0
 
sidwelleAuthor Commented:
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
 
sidwelleAuthor Commented:
Thanks for the help.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now