More complex schedule. Is there an easier way in windows task scheduler? - windows-task-scheduler

I want to run an app via task scheduler in following schedule:
Sunday-Thursday every 30 minutes.
Friday every 30 minutes but only until 10:30 pm
Saturday every 30 minutes starting at 11:00 am.
So it should literally just not run every 30 minutes during a maintenance window of another tool which is from Friday 11pm to Saturday 11 am.
My actual approach would require a lot of triggers.
1 weekly trigger for all the full running days (Sun-Thu: Repeat every 30 minutes for 1 day)
1 weekly trigger for every Friday starting at 12am, repeat every 30 minutes for 12 hrs
10 weekly triggers for every Friday starting 1pm, 2pm, 3pm etc, repeat every 30 minutes for 1 hr)
1 weekly trigger for every Saturday starting 11am, repeat every 30 minutes for 12 hrs
1 weekly trigger for every Saturday starting 11:30pm.
And the similar thing for Saturday.
Is there any easier ways to schedule this? I was under the assumption that there is a "stop after x recurrences" option. But could not find it.

Related

Cron Expression with Logical And

Can someone help me with cron expression for following?
Mondays that fall between the 5th and 20th of a month. I wrote following
30 18 5-20 * 1
But it runs on all dates between 5 and 20 and also on Mondays (i.e. Mondays outside of the given range).

Can I define exact weekday in iso8601 datetime to schedule a job?

The date-time that i have now:
"schedule": "R/2017-10-05T17:21:00/PT15M"
for now the job is scheduled for every 15 minutes (in chron), but if i want to perform it three times a day at a certain time and only Monday - Friday?
Is it possible to define in this format?
It's not possible
ISO8601 is designed to define intervals but only static. There is no way to define weekdays or weekends. This means you can only define interval for 3 times a day but not every day from Monday to Friday because then you will have not equal intervals between Friday and Monday.
What you can do is to create 15 jobs scheduled weekly.

Unix Time Subtraction error?

Start 6/7/2018 13:00 - End 7/14/2018 10:00 = Unix Time 3186000
The above is 35 days and 23 hours, converted to seconds is 3106800
So the manual conversion is 22 minutes different (less) from converting the date/times to Unix Time Stamps and subtracting.
Why?

Scheduling events with changing Time zone

I need help with this scenario:
1) Currently it is summer time. I need to create a time interval for June 9 Monday 6 PM - 7 PM EDT and every week after that until end of 2018. This interval will be for students to schedule appointments with a tutor. The client right now sends that as a request for creating start time at June 9 Mondays 2 PM UTC. (EDT is -4 hours offset) The server creates a start time in db for June 9 2 PM UTC and adds 7 days worth of milliseconds to create recurring
^ this causes an issue because of DST. Let's say it is right now November 5th (which is after daylights saving change). The DB still has Nov 5, 2 PM UTC saved as value. But because my timezone changed, instead of offsetting by 4 hours like I did on June, I offset by 5 hours. So the correct start time is "6 PM session in my timezone" becomes "7 PM my timezone". this is the error
the solution is either of one of two (or combination of both):
1) instead of adding 7 days worth of milisecond, you add 1 week worth of miliseconds depending on the user's timezone Currently, there's no way to extract a person's timezone based on utc offset (-400, which is right now in east coast USA, is also applicable to Canada, Carribeans, South America etc. We need to save a user's timezone as a string, rather than UTC offset count. There is an international standard for timezones)
2) ?? something else

How to add Hour with sysdate in business hour in Oracle?

Need to adding in business hours between 9 to 6 ( mean 8 hours daily and exclude Saturday and Sunday; ), now i want to add 40 hours with sysdate date.Need to display finish time,
Suppose i will assign a task on Friday 2nd of May 2014 ,10:30 AM then finish time
should be Friday 8th of May 2014 ,10:30 AM

Resources