【问题标题】:How to schedule AutoSys job to run between 1:00 AM EST till 1:30 AM EST如何安排 AutoSys 作业在 1:00 AM EST 到 1:30 AM EST 之间运行
【发布时间】:2021-06-04 08:51:20
【问题描述】:

我有一个场景,我想创建一个 Autosys 调度作业。

应该在Monday till Friday之间运行,也只是在1:00 AM EST till 1:30 AM EST之间运行

仅应在美国东部标准时间凌晨 1:00 至凌晨 1:30 每 10 分钟检查一次

我试过了:

run_window : 11:00-11:30

如何实现每 10 分钟一次?和日历创建

【问题讨论】:

    标签: autosys


    【解决方案1】:

    可以在作业级别配置此场景的日期和时间条件,无需明确创建日历。

    insert_job: WeekDay_MidNight_Job
    job_type: CMD 
    machine: localhost
    command: bash /absolute_path/script_name.sh
    run_window : 00:55-01:35                     /* Job activates 5 min prior to actual run */
    start_mins: 0,10,20,30                       /* Of every 0,10,20,30 minutes of the hour, the job gets triggered, for this case 01:00, 01:10, 01:20 and 01:30 */
    days_of_week: mo,tu,we,th,fr                 /* Days of the week */
    exclude_calendar: Holiday_Calendar_Name      /* Skips run on defined holidays */
    timezone: US/Eastern
    

    使用here 中“tz 数据库名称”列中的时区属性

    使用扩展日历和周期也可以做到这一点。

    Autosys 用户手册here

    【讨论】:

    • 你能展示如何在上面添加假期日历日期...我不希望工作在那些假期日历日期上运行如何实现这一点?
    • 感谢解决方案将尝试实施
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-16
    • 2023-03-05
    相关资源
    最近更新 更多