Is it possible to create TS (Windows Server 2012 R2) for below timings in everyday?
9:00, 15:00, 19:00 and 3:00
I have idea to create TS for every 6 hours in a day, but i have a 4 hours gap between 15:00 and 19:00.
any idea?
~~Ramesh
Related
I want to achieve below requirement -
Say I have a trigger named RunBatchJob
Weekdays: Monday - Friday
I want to schedule this trigger to run on below times:
Recurrence -> Every 5 Minutes between 06:00AM until 10:00 PM
Recurrence -> Every 30 Minutes between 10:01 PM until 05:59 AM
Weekends: Saturday, Sunday
I want to schedule this trigger to run on below times:
Recurrence -> Every 10 Minutes between 06:00AM until 10:00 PM
Recurrence -> Every 1 Hour between 10:01 PM until 05:59 AM
This used to be particularly easy on SQL server jobs, can anyone please advise me how to do it on ADF?
You can separate the triggers into 4 cases. Use a scheduled trigger for 1 week occurrence. Then you can enumerate all the combinations of trigger times in each trigger.
Here is the example for the 1st case(Mon-Fri Every 5 Minutes between 06:00 AM until 10:00 PM)
You can just repeat the idea for 2nd case(Mon-Fri Every 30 Minutes between 10:01 PM until 05:59 PM)
I have a requirement to calculate a persons total activity, for each month that they have activity. I'll give a couple of examples to demonstrate my needs:
Client A - Service starts 15th April and ends 5th June. They are scheduled to receive 7 hours per week of activity.
Client B - Service Starts 15th April and ends 20th April. They are scheduled to receive 14 hours per week.
Given the above I would want a table that shows the following:
Clients
April Hrs
May Hrs
June Hrs
Client A
16
31
5
Client B
10
Total Activity
26
31
5
Currently we are having to calculate each month individually and stack up the table with each months data. Is there a way to generate this calculation across months, taking into account the start dates, end dates, and commissioned hours activity per week and calculate the actual received activity in each month?
Thanks in advance!
I have sets of date/time range values, each set came from different column ("FROM" and "TO")
examples:
FROM: June 6, 2016 7:00 AM; TO: June 6, 2016 5:00 PM
FROM: June 6, 2016 8:00 PM; TO: June 7, 2016 6:00 AM
I want to get how many minutes of each set falls to 3:00 PM - 2:00 AM (next day) or "OFF PEAK HOURS", like this
for the example above, I want to get the number of minutes between 3PM - 2AM next day.
on the first row, from 7AM-5PM, two hours is included to my 3PM-2AM range criteria, which is 3PM-5PM (2 hours) . Thats why I got 120 mins.
on the second row, from 8PM-6AM next day, two hours is included to my 3PM-2AM range criteria, which is 8PM-2AM (6 hours). Thats why I got 360 mins.
see this graph for reference:
I want to count the number of minutes falls during "OFF PEAK HOURS"-shaded in orange/tan.
Is it doable in expression?
Thank you in advance.
Please note that I am using fetchXML for the query.
Supposing the table you put in the question is wrong and it is only an example, I think you can get the spent minutes between two dates by using this expression:
=DateDiff(DateInterval.Minute,
Fields!From.Value,
Fields!To.Value
)
Example:
=DateDiff(DateInterval.Minute,
CDATE("2016-06-06 07:00:00 AM"),
CDATE("2016-06-06 05:00:00 PM")
)
The above example returns 600. 10 hours by 60 minutes. DateDiff function returns the specified date/time interval of time between two specified dates.
Let me know if this helps.
I am looking for a Cron Expression that will schedule in different time in different weekdays. I'm not sure if that is possible or not.
I searched and found that Cron can schedule "At 8:00am every Monday through Friday" or "At 1:30am every last Friday of the month".
But is it possible to get cron expression that will schedule like, say :
10:00 AM every Monday
12:00 AM every Tuesday
02:00 PM every Wednesday
04:00 PM every Thursday
06:00 AM every Friday
I'm new to Cron Expression, and through google, I could not find whether it is possible.
My query is :
Is it possible to create cron expression like that?
If possible, then can you provide sample expression for that? along with some tutorial to know how to create them.
No, you need to write a different cron expression for each time-day(s) combination.
Ubuntu has a nice tutorial about cron. To run something at 10:00 AM every Monday:
# Min Hr Day Month Weekday Command
00 10 * * 1 touch /tmp/cron_has_run
Note that weekdays are counted from zero, so 0 is Sunday, 1 is Monday, etc.
How to setup a report schedule in Jasper server 5.0 to run every 2 hours, from 8:00 AM to 8:00 PM every day excepting Saturdays? In other words - the schedule has to start at 8:00 AM, runs every 2 hours and stops at 8:00 PM for every day, excepting Saturdays.
The hours input box should be filled as 8,10,12,14,16,18,20