Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
169 views
in Technique[技术] by (71.8m points)

python - Do not run an Autosys job on a specific day

Hope you are doing well!

Actually my query is - I want an Autosys job to not run on 1st Jan of Every Year. I think it would be done by Exclude_calendar. Could you please help how can we write script in python for that?

Please help me .I am newbie about Autosys jobs nd Python as well. I need your help. Could you please help me?

Thank you in Advance!!

question from:https://stackoverflow.com/questions/65626458/do-not-run-an-autosys-job-on-a-specific-day

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Its always better to include what all you have tried and tested out.

Step1: create a CYCLE and then Extended Calendar

cycle: YEARLY_JAN
start_date: 01/01/1972
end_date: 01/05/1972

1972 indicates for all future years

extended_calendar: FIRST_DAY_JAN
workday: 
non_workday:
holiday: S
holcal:
cyccal: YEARLY_JAN
adjust:
condition: MNTHD#1

MNTHD#1 indicates first date of the month

Step2: Use the calendar in exclude_calendar attribute for the required job

update_job: BATCH_JOB_TO_UPDATE
exclude_calendar: FIRST_DAY_JAN

Welcome.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...