AutoSys Workload Automation

 View Only

 Exclude Calendar and the Use date/time conditions checkbox

Corrie Kantowski's profile image
Corrie Kantowski posted Aug 26, 2022 11:43 AM
For a job that has no Run calendar, no days, no times of day and no minutes after each hour indicated, and has only an Exclude calendar indicated, must the "Use date/time conditions" box be checked for it to be used by the job? In other words, will the job ignore the exclude calendar if this check box is not checked?

The example in the 12.0.01 documentation seems to indicate that the checkbox needs to be checked:
Example: Specify the Exclusion Calendar for a Job
This example specifies the custom calendar HOLIDAY that defines days when the job cannot run.
2556
AutoSys Workload Automation 12.0.01
date_conditions: y
exclude_calendar: HOLIDAY

However the description of the text box is vague to me (not 100% sure if an Exclude calendar is regarded as a date or time condition):
Use date/time conditions
(Optional) Indicates whether to use date or time conditions specified to determine when to run the job.
john egerter's profile image
john egerter
Another reason for Broadcom to include a future schedule estimation tool in their WCC UI.  Based on the job's schedule and condition attributes, these are the timestamps of the next 10 expected runs for this job, or exact reasons why those next runs cannot be calculated given those attributes.
Michael Woods's profile image
Broadcom Employee Michael Woods
Hi,

I'm not sure I fully understand what you are looking for.  You need to have something that is used to trigger the job to be forecasted.  If you don't use run days/run calendar, then you would need a condition like s(job1) to have it start.  I'll assume you are using a condition.
In this case, the exclude calendar would prevent the job from running on those days and yes, you need to check off the use date/time conditions.

To see if it will do what you want, you can use the forecast command with the appropriate parms like jobname and date or from WCC you can use the forecast tab to create a forecast report to do the same.  It runs the forecast command in the background to get the data to display.  

Regards,
Mike
Corrie Kantowski's profile image
Corrie Kantowski
Sorry if I was not clear in my initial request. I simply needed to know if the "Use Date/time conditions" checkbox had to be checked in order for an Exclude calendar to be honored. So, I set up a test job, and discovered it must be checked in order for the calendar to be obeyed. That was my finding, but if you feel this is incorrect, please let me know.

I don't understand the reason for having the scheduling information filled in and then ignored if the "Use Date/time conditions" is unchecked. Seems like overkill.
Michael Woods's profile image
Broadcom Employee Michael Woods
I'm not sure what the original customer request was that caused this to be introduced, but I suspect it was a way to inactivate a job for some reason.
Maybe when inserting a new application and don't want it to run just yet or to take a stream off the schedule?  Using on hold could be dangerous if someone took the job off hold by mistake.  I'm glad you have the answer to your question.

Regards,
Mike