task taking longer then weekly working days - project-management

I have a suppliers that work only Monday, Tuesday, Wednesday.
I configured the ms project calender to be Monday, Tuesday and Wednesday .
Now when I make a short tasks it splits the task between weeks .
But if I make a 5 days task that start on Monday its not make part of the task on mon-web (3 days) and next week mon-tue ( another 2 days ) but make the task Mon-fri
How can I fix it ?
Thanks

try this one.
Changing the project calendar

Make sure that when you change the calendar that you go back and use the calendar in your project.
From the link in the first answer:
But be aware that when you change the projects default calendar, you
will not change the calendar for existing tasks and resources, so you
will have to do that by hand.
If the task already existed it might be using the wrong calendar.

Related

Specifying periodic time intervals (eg: operating hours of an office)

I am designing an API where I need to specify the operating hours of an office. It could be like
0815-1745 every Monday to Friday
Every Second Saturday
On expected rush days till 2000 [eg: 2021-06-15 1745-2000]
Each interval will be specified separately and the final operating hours will be the sum of all the individual intervals.
I need a means to specify this succinctly. There are two existing choices I am aware of:
Extended cron format as defined in https://crontab.guru/
Asterisk GotoIfTime syntax: https://www.voip-info.org/asterisk-cmd-gotoiftime
The cron syntax is not really able to defined ranges like 0815-1745 every Monday to Friday, but the Asterisk syntax is quite capable.
Does any other [better?] syntax/means exists which can achieve the same result? A library to do so will be mighty cool.

Task scheduler to run tasks only during the last full workweek of the month

I have multiple tasks that need to be scheduled during the last full workweek (Monday through Friday) of every month. These will be scheduled from a Windows Server 2016 server. I cannot figure out the logic to do it.
Additional info to help:
July 2020 is a perfect month to just say run on the last Monday/Tuesday/etc. Most months will not end with a full workweek though. It may end on a Tuesday and the full workweek ended 4 days before that.
I have ideas of how to do this, but they are not fully formulated:
Find the last Friday of the month and start 4 days before that.
Find the last Monday with at least 4 additional days in the month after.
If the last day of the month is Sunday, start 6 days before that; Saturday, start 5 days before that; etc.
What is the cleanest method to do this in task scheduler? (The scripts being scheduled are in PowerShell, though I don’t think that matters).
So, your situation is: "I have a script, I have a complicated date schedule, and I would like my script to be launched according to that schedule.",
and your question is: "How to perform this scheduling in Windows task scheduler?"
My answer would be:
Don't do it like that, but write a new script which verifies the current date, and verifies if the current date corresponds to the complicate date schedule (in that case, launch your original script), and use Windows task scheduler to launch this new script on a daily basis.
As for making that new script, this URL explains how to perform date handling in Powershell.
This particular use case can actually be done fully in the Task Scheduler.
When adding a new trigger, select Monthly then for Months select <Select all months>. Then, change the radio button below it to Onand chooseLastand`.
May I suggest a solution:
In VBA write a very short Sub routine indicating the current date (using "Now() + 1".
Then use "instr(1,string1,""/"")" to see whether the second entry in the resulting date (such as "5/1/2022") is a "1". If it is, then you can issue a warning on a prepared Notepad.txt the day before the 1st of the month that also provides an answer to your question regarding scheduling an event on the 1st of every month. The routine is to run (in the background) every day until it reaches this particular occurrence.

How to run a job on specific times every day from Monday to Friday in Rundeck?

Is there any way to run the job every day from Monday to Friday at 45 mins time interval from 2.45 pm to 5 pm. (The job should run at 2.45pm , 3.30pm, 4.15, 5.00). Please help.
Thank you.
I know of two ways:
One way is to create four jobs scheduled at a single time every Mon-Fri. Give each a single step, which is a job reference to the real job. For example, the first job would be scheduled to run at 2.45pm every Mon-Fri, the second at 3.30pm, etc. You're not making copies of the existing job, just single-step jobs that reference the original.
That approach lets you manage each scheduled time individually.
Another way is to schedule it every 15 minutes from 2.00pm to 5.45pm, and add an initial step that fails if the time is before 2.45pm or after 5.01pm. If you don't want to see these failures, you could add an error step to that first step which marks the job succeeded even if it's really skipping all the real steps.
Paul M. Lambert
Platform Solutions Architect
Rundeck, Inc.

Cronjob every two weeks

I want to run a cronjob every two weeks on Sundays at midnight.
This is what I've tried.
0 0 * * 0/2 /path/to/script
Is this correct?
Will it execute the next Sunday and then every two weeks? I cant test it on my server at this point.. Please help.
Thanks.
AFAIK cron can't handle "every second week".
Instead, you could run it every Sunday at midnight and modify the script exit early if it's not one of the Sundays you want it to run.
If modification of the script is not possible, create a wrapper script that only calls the main script when it's a scheduled Sunday and call the wrapper from cron.

Recurring Toasts with Windows 8.1 Store Apps build with JS

I've been trying to create notifications that happen on a weekly basis - for example, every monday at 8am.
I've tried to use a recurring toast for this - http://msdn.microsoft.com/en-us/library/windows/apps/hh465417.aspx - but realized that the recurrence parameters are more designed for a snooze functionality, with a maximum delay of 60 minutes, and a maximum repeat for 3 times.
Is there a suggested workaround for this?
Is there a best practice for such a use case?
Thanks!
You're right that the recurrence on scheduled toasts is designed for snooze. Unfortunately, the API doesn't provide a way to show the same toast multiple times on a fixed schedule.
You'll need to manually create a ScheduledToastNotification each time you want it to be shown. In your example, you might create and schedule out a toast a week for each Monday at 8 AM.

Resources